Copied to clipboard

Flag this post as spam?

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


  • Rik Helsen 670 posts 873 karma points
    Jul 14, 2009 @ 15:45
    Rik Helsen
    1

    Step by step guide for using the RSS module

    If someone could please help me to put together a step by step guide for using the rss  xslt module?

    1) Right click "XSLT Files" in the developer section, and select "Create"

    2) give it a name and select the "RSS Feed" template

    3) Create a new template (based on no document type?)

    4) insert the macro <umbraco:Macro Alias="RSS" runat="server"></umbraco:Macro> into the contentplaceholder

    5) choose an existing document type and allow new childs of the rss template

    6) Create a new page (based on any document type)

    7) change the template for that page to the rss template

    What i don't understand is that i first need to create a document type or skip this and proceed with a template? then when i create a page (using any doctype that allows the rss template) and then changing the template to RSS I keep getting errors when i load the page...

     

    So far get this error when i try to load my page:

    XML-parsefout: XML- of tekstdeclaratie niet aan begin van entiteit
    Locatie: http://localhost:600/test.aspx
    Regelnummer 2, kolom 2: <?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rssdatehelper="urn:rssdatehelper"><channel><title>My sample rss</title><link>Add your url here</link><pubDate></pubDate><generator>umbraco</generator><description>Add your description here</description><language>en</language></channel></rss>
    -^

  • Peter Dijksterhuis 1442 posts 1722 karma points
    Jul 14, 2009 @ 15:54
    Peter Dijksterhuis
    0

    You should alter your template. It has probably 2 empty lines at the top.

    The disadvantadge of masterpages is that is spits out empty lines. Removes the linebreaks in your RSS-template so that the actual xml declaration starts on the first line. That should do the trick.

  • Rik Helsen 670 posts 873 karma points
    Jul 14, 2009 @ 16:06
    Rik Helsen
    0

    Thanks, that got me from getting some results:

     

    <rss version="2.0">

    <channel>
    <title>Myyyy sample rss</title>
    <link>Add your url here</link>
    <pubDate/>
    <generator>umbraco</generator>
    <description>Add your description here</description>
    <language>en</language>
    </channel>
    </rss>

     

    I assume i now have to edit the xslt in order to get more results?

  • Comment author was deleted

    Jul 14, 2009 @ 16:14

    Just a quick note, you don't need step

    5) choose an existing document type and allow new childs of the rss template

    6) Create a new page (based on any document type)

    7) change the template for that page to the rss template

     

    You can just call the template as as an alternative template

    Some info on alt template: http://www.nibble.be/?p=42

  • Rik Helsen 670 posts 873 karma points
    Jul 14, 2009 @ 16:20
    Rik Helsen
    0

    That's quite interesting, and works fine so it seems!

    Now i just need the rss feed to return items, instead of just the channel description...

  • Rik Helsen 670 posts 873 karma points
    Jul 14, 2009 @ 16:25
    Rik Helsen
    0

    It appears the RSS feed XSLT doesn't work recursively? any suggestions?

Please Sign in or register to post replies

Write your reply to:

Draft