Copied to clipboard

Flag this post as spam?

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


  • Marius 22 posts 42 karma points
    Nov 06, 2009 @ 12:12
    Marius
    0

    Making RSS Feed

    Hello,

    Need a little help with RSS Feed making work.

    I am trying to make my own xslt following RSS Feed xslt example in Waren's CWS 2.1, also I made my own xslt by Umbraco xslt RSS example, 
    but to no success.

    I have document type say "NewsItem" under "News" list type document.

    I made a clean template (RSSLvat) (no Master template), inserted a RSS Macro with RSS xslt.
    I did not create document type.

    When I call template directly from master template:

    .. 
    <a href="/rsslvat.aspx" title="RSS Feed for <umbraco:Item field='siteName' recursive='true' runat='server'></umbraco:Item>">
    RSS Feed
    </a>
    ..

    All I get is a 404 page. 

    What should I do? How to make this RSS work. Any examples?

    Thank you,

    Marius.

  • atze187 160 posts 215 karma points
    Nov 06, 2009 @ 13:13
    atze187
    0

    You need to create the page "rsslvat" in your website's root within umbraco. Therefore you need to create a document type that is allowed to use your template.

    Generally i wouldn't recommend linking to your rss feed using a hyperlink. Go for something like this in the head of your pages:

    <link rel="alternate" type="application/rss+xml" title="RSS" href="http://www.yourdomain.com/rsslvat.aspx" />

    Cheers,
    André

  • Marius 22 posts 42 karma points
    Nov 06, 2009 @ 14:31
    Marius
    0

    Thanks for reply,

    I have a template this:

    <%@ Master Language="C#" MasterPageFile="/umbraco/masterpages/default.master" AutoEventWireup="true" %>
    <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
    <umbraco:Macro rssNoItems="10" rssTitle="RSS News" rssDescription="LVAT News" Alias="RSS_Lvat" runat="server"></umbraco:Macro></asp:Content>
    </asp:Content>

    When I load a page

    I get server response:

                 Parser Error Message: Only Content controls are allowed directly in a content page that contains Content controls. 

    What's wrong here...?

    M.

     

  • Marius 22 posts 42 karma points
    Nov 06, 2009 @ 14:33
    Marius
    0

    Oh sorry, figured it out </asp:Content> twice.

    Must be too tired today.

    Thanks, now I've got working feeds.

    M.

Please Sign in or register to post replies

Write your reply to:

Draft