[opencms-dev] RSS Feed parameters --- RES: opencms-dev Digest, Vol 314, Issue 4

Mario Jäger m.jaeger at alkacon.com
Tue Oct 26 09:38:40 CEST 2010


Hi Hernán,

Do you mean a new field for the field select box in the RSS feed xml content in the<Mapping><Field>  node? It is only possible to set feed attributes, which are possible to set on a SyndFeed object: https://rome.dev.java.net/apidocs/0_3/com/sun/syndication/feed/synd/SyndFeed.html

There are only two SyndFeed attributes not used in the RSS feeder module: setCategories() to set the feed categories and and setModules() to set the feed modules. If you want to set these attributes, then you have to enhance the files
/system/modules/com.alkacon.opencms.feeder/schemas/alkacon-feed.xsd, com.alkacon.opencms.feeder.CmsFeed.java and com.alkacon.opencms.feeder.CmsFeedGenerator.java.

-- 
Kind Regards,
Mario.

-------------------
Mario Jäger

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org


Am 25.10.2010 14:28, schrieb HERNAN - TFSLA:
> Hi,
>
> I have another question regarding the RSS. It is possible to add NEW FIELDS
> to the rss?
>
> Regards
> Hernán
>
>
> Mario Jäger wrote:
>> Hi Allan,
>>
>> In the RSS feed xml content you can configure the collector to use. The
>> default collector is the "allInFolder" collector. If you use that
>> collector, than you have to configure these parameters: {VFS
>> URI}|{Resource type}|{Count}.
>> These parameters include the following information for the "allInFolder"
>> collector:
>>
>> - {VFS URI}: in which VFS folder to collect resources
>>
>> - {Resource type}: collect resources of which resource type
>>
>> - {Count}: how many resources to collect at most
>>
>>
>> You set these parameters:  /bv/sobre_banco/|newsarticle|10
>>
>> And that means for the collector:
>>
>> -/bv/sobre_banco/: collect resources in VFS folder "/bv/sobre_banco/"
>>
>> - newsarticle: collect resources of resource type "newsarticle"
>>
>> - 10: collect 10 resources at most
>>
>>
>> If you want to display resources of type "news" ("New" ->   "Structured
>> Content" ->   "News article"), then you have to set the {Resource type}
>> parameter value to "news" instead of "newsarticle":
>>
>> /bv/sobre_banco/|news|10
>>
>> -- 
>> Kind Regards,
>> Mario.
>>
>> -------------------
>> Mario Jäger
>>
>> Alkacon Software GmbH  - The OpenCms Experts
>> http://www.alkacon.com - http://www.opencms.org
>>
>>
>> Am 14.10.2010 22:10, schrieb Allan Batista dos Santos:
>>> Hi Guys.
>>>
>>> I need help too, my RSS return a empty page, no articles.
>>>
>>> I cannot understand Parameters e.g:
>>>
>>> /bv/sobre_banco/|newsarticle|10
>>>
>>> What's this: newsarticle and 10
>>> What are Parameters
>>>
>>> Regards.
>>>
>>> Allan B
>>>
>>>
>>>
>>>
>>>
>>> -----Mensagem original-----
>>> De: opencms-dev-bounces at opencms.org
>>> [mailto:opencms-dev-bounces at opencms.org] Em nome de
>>> opencms-dev-request at opencms.org
>>> Enviada em: quinta-feira, 14 de outubro de 2010 07:00
>>> Para: opencms-dev at opencms.org
>>> Assunto: opencms-dev Digest, Vol 314, Issue 4
>>>
>>> Send opencms-dev mailing list submissions to
>>> 	opencms-dev at opencms.org
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> 	http://lists.opencms.org/mailman/listinfo/opencms-dev
>>> or, via email, send a message with subject or body 'help' to
>>> 	opencms-dev-request at opencms.org
>>>
>>> You can reach the person managing the list at
>>> 	opencms-dev-owner at opencms.org
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of opencms-dev digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>      1. OAMP RSS feed module, incorrect url in links (Carl-Erik Herheim)
>>>      2. Re: OAMP RSS feed module, incorrect url in links (Mario J?ger)
>>>      3. Adding a new file type in opencms (Alain TOMASIAN)
>>>      4. Re: OAMP RSS feed module, incorrect url in links
>>>         (Carl-Erik Herheim)
>>>
>>>
>>> ----------------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Wed, 13 Oct 2010 14:24:09 +0200
>>> From: Carl-Erik Herheim<carl-erik.herheim at nsd.uib.no>
>>> Subject: [opencms-dev] OAMP RSS feed module, incorrect url in links
>>> To: opencms-dev at opencms.org
>>> Message-ID:<4CB5A4E9.7020503 at nsd.uib.no>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>>
>>> I've installed the OAMP rss feed module on one of our opencms servers,
>>> and I'm having trouble with the links in the rss feed.
>>> The link uses the address defined in<workplace-server>   /<site server>
>>> in opencms-system.xml instead of the actual site url that users can
>>> access. I guess it bypasses the tomcat setup or whatnot... How can I fix
>>> this?
>>>
>>> This is on a server with Opencms version 7.5.0, tomcat 5.5.27. We've
>>> removed /opencms/ from the path.
>>>
>>>
>>> Thanks,
>>> Carl-Erik Herheim
>>>
>>>
>>> ------------------------------
>>>
>>> Message: 2
>>> Date: Thu, 14 Oct 2010 10:13:11 +0200
>>> From: Mario J?ger<m.jaeger at alkacon.com>
>>> Subject: Re: [opencms-dev] OAMP RSS feed module, incorrect url in
>>> 	links
>>> To: The OpenCms mailing list<opencms-dev at opencms.org>
>>> Message-ID:<4CB6BB97.7040303 at alkacon.com>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>>
>>>
>>> Hi Carl-Erik,
>>>
>>> Yes, you are right. The rss feed uses the configuration in the
>>> opencms-system.xml. If you use the rss feed in site A, then the links in
>>> the rss feed go to site A. If you use the rss feed in site B, then the
>>> links in the rss feed go to site B.
>>>
>>> What do you mean with the actual site url, that users can access? Please,
>>> describe your problem in more detail.
>>>
>>> Did you also check it in the "Online" project?
>>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>



More information about the opencms-dev mailing list