Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Almir Vereget 62 posts 150 karma points
    Mar 15, 2010 @ 16:20
    Almir Vereget
    0

    Rss feed from content pickers

    Hi,

    on my home page node i have 8 content pickers where editor can pick 8 pages and show them on Home page.

    I need to create one RSS feed from Home page based on content that is picked by that 8 content pickers. Every page has same properties (pageHeader, bodyText etc.) so that is not the problem. I tried something with standard xslt rss template but no luck.

    Any thoughts on way to do this?

    Thanks!

     

     

  • dandrayne 1138 posts 2262 karma points
    Mar 15, 2010 @ 16:31
    dandrayne
    0

    http://our.umbraco.org/wiki/how-tos/xslt-useful-tips-and-snippets/reading-rss-feeds,-aggregating-and-sorting

    Will be a great help to you here, as  you'll probably need to create then combine feeds for each page chosen - with something like...

    umbraco.library:GetXmlNodeById(1234)


    or

    $currentPage/ancestor-or-self::root//node[@id=1234]


    for each of your pickers, then combine them to get the n most recent items across all feeds.

  • Almir Vereget 62 posts 150 karma points
    Mar 16, 2010 @ 12:50
    Almir Vereget
    0

    Got it.

    First i created 8 variables with my 8 content pickers. Than i created one variable called "all-pickers" with values from 8 pickers, and than another variable where i converted "all-pickers" variable to node set.

    Than i could just iterate trough each node, and get all values from them.

    Thank you, your post was very helpfull.

     

Please Sign in or register to post replies

Write your reply to:

Draft