Index |  XLsuite |  Design | Document...

Feed XLsuite Render Feed Syntax

Author Message
iXLd Media Inc., Sandjaja, Harman

Using render feed on CMS:

{% render_feed |selection options| |other options| %}

note: no spaces in between % and curly brackets




SELECTION OPTIONS (choose only ONE):

  • - labeled: the label of feed to be used (look this up at admin/feeds)

  • - tagged_any: all feeds that’s been tagged with ANY of the specified tags

  • - tagged_all: all feeds that’s been tagged with ALL of the specified tags




OTHER OPTIONS:




  • count: number of feed items to be displayed


    DEFAULT: 5


  • display: 3 values for display – short, full or title



    1. 1. summary: displays title with short content of feed item truncated
    2. 2. full: displays title and full content of the feed item
    3. 3. title: displays title only

    DEFAULT: summary


  • order: 2 values supported – random or by_date

    1. 1. random: random feed items selected
    2. 2. by_date: the X (count number specified by count option) latest feed items

    DEFAULT: random


  • truncate_to: number of characters for each feed item’s content displayed after truncation when using summary display mode

    DEFAULT: 255




EXAMPLES:

{% render_feed labeled:“My_Feed” count:7 order:“random” truncate_to:100 display:“summary” %}{% render_feed tagged_any:“example, xlsuite” count:10 order:“by_date” display:“title” %}

reminder: no spaces in between % and curly brackets

iXLd Media Inc., Roussopoulos, Riel

You have “Named” as one of the selection options, and as an example in your code sample…

yet I’m pretty sure that if you look in the feed module, there is no title. Only the feed and tags.

We should eventually have a code generator for this and modules like the file manager so you can simply generate the code to put it on the page with whatever options you wanted as part of the code generator.

Show: 

Sort posts by: Newest «» Oldest