Results 1 to 3 of 3

Thread: Increased RSS Snippet Length.

  1. #1
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Increased RSS Snippet Length.

    Hi

    I'm using this code on my site
    http://www.dynamicdrive.com/dynamici...sdisplayer.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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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")
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Feb 2010
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Perfect thank you

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •