PDA

View Full Version : Increased RSS Snippet Length.



dinot1985
06-30-2010, 12:33 PM
Hi

I'm using this code on my site
http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm

and would like to increase the snippet length. I am using it to display news that only is a few sentences long per update, so i dont want to cut it short.

any way to do this?

thanks.

jscheuer1
06-30-2010, 01:10 PM
Don't use the snippet keyword. Replace it with the description keyword (from the demo page):


By default, only the title of each RSS entry is shown. Specify additional fields such as each entry's date and description by calling displayoptions() and passing in specific keywords, each separated by a space, for example, "datetime label description".


Parameter:
space_delimited_keywords: A list of keywords representing the additional fields of each entry you wish to show, separated by a space. The list of valid keywords are "date", "time", "datetime", "label", "snippet", and "description".


Example:

//eg1: myrss.displayoptions("datetime")
//eg2: myrss.displayoptions("date label snippet")
//eg3: myrss.displayoptions("datetime label description")

dinot1985
06-30-2010, 02:16 PM
Perfect thank you :)