Copied to clipboard

Flag this post as spam?

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


  • Sebastiaan Janssen 5058 posts 15520 karma points MVP admin hq
    Jun 28, 2009 @ 17:26
    Sebastiaan Janssen
    0

    BlogRSS not working when moving blog in the content tree

    I've been using the excellent Blog4Umbraco package, but when I change around some content, the RSS feed stops working.

    In this set-up, it IS working:

    Content
     - Home
      - Blog

    But in this set-up it's not:

    Content
     - cultiv.nl
      - Home
      - Blog

    So now Blog is on the same level as home and it's giving me nothing. What am I doing wrong?

    I'm quite sure the problem lies in this piece of XSLT:
            <xsl:apply-templates select="$currentPage//node [@nodeTypeAlias = 'BlogPost']">

    I already left our $currentPage, but that doesn't seem to help.
    I'm not such an XSLT star, so I'm hoping for some help here..

    Thanks!

  • Michael Kearney (banned) 6 posts -33 karma points
    Jun 28, 2009 @ 19:15
    Michael Kearney (banned)
    -5

    Right click content  - while - "managing hostnames" LOL The repair is costly and stays in umbraco cache. Especially if you are faint of heart. LOL You can then click "Re-publish entire site" to update the cache.

    http://www.welcomehome.org/rainbow/sites/annual-site.html

     

  • Jesper Ordrup 1019 posts 1528 karma points MVP
    Jun 28, 2009 @ 19:36
    Jesper Ordrup
    101

    Hi Sebastiaan,

     

    try:

    $currentPage/ancestor-or-self::node [@level=1]//node[@nodeTypeAlias = 'BlogPost']

     

    There's probably an easier one, but this works for me.

    /Jesper

  • Sebastiaan Janssen 5058 posts 15520 karma points MVP admin hq
    Jun 28, 2009 @ 21:52
    Sebastiaan Janssen
    0

    Tried that already Michael, no luck.

    Jesper: yes, that did the trick! I was so close myself, must have made a typo somewhere :(

    I notice this is also working when you leave out the level:$currentPage</span><span class="pun">/</span><span class="pln">ancestor</span><span class="pun">-</span><span class="kwd">or</span><span class="pun">-</span><span class="kwd">self</span><span class="pun">::</span><span class="pln">node </span><span class="pun"></span><span class="com">//node[@nodeTypeAlias = 'BlogPost']</span><span class="pln">
    </span>

  • Sebastiaan Janssen 5058 posts 15520 karma points MVP admin hq
    Jun 28, 2009 @ 21:53
    Sebastiaan Janssen
    0

    Whoah, where's the "Edit" button? ;-)

    $currentPage/ancestor-or-self::node //node[@nodeTypeAlias = 'BlogPost']
  • Paul Gibson 4 posts 23 karma points
    Aug 16, 2009 @ 02:44
    Paul Gibson
    0

    Hi

    I am getting similar issues and the above fixes are not working.  The following error is generated in Firefox when you click on the RSS link;

    XML Parsing Error: XML or text declaration not at start of entity
    Location: http://www.audacioussolutions.com.au/blog/rss.aspx
    Line Number 2, Column 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>Audacious Blog</title><link>http://www.umlaut.be</link><pubDate></pubDate><generator>umbraco</generator><description>Business and Personal comments from Paul Gibson</description><language>en</language><item><title>third post</title><link>http://www.umlaut.be/blog/2009/7/26/third-post.aspx</link><pubDate>Sun, 26 Jul 2009 16:22:48 GMT</pubDate><guid>http://www.umlaut.be/blog/2009/7/26/third-post.aspx</guid><content:encoded><![CDATA[
    --------^

    Any similar errors experienced? issue seems to be <![CDATA[       --------^

    Paul

  • Chris Koiak 700 posts 2626 karma points
    Aug 16, 2009 @ 10:17
    Chris Koiak
    0

    Hi Paul,

    Your issue is a different problem and in the future you will propably get more responses if you start a new topic.

    Check the raw xml generated, you can do this by opening the url in VS, Textpad, etc. I would guess that the template has whitespace before the xml declaration. Try removing the whitespace that precedes the macro in the template.

    Does the same error occur in FF and IE?

    If this isn't the error, you could start a new topic and post the full generated xml file.

    Chris

  • Paul Gibson 4 posts 23 karma points
    Aug 16, 2009 @ 10:33
    Paul Gibson
    0

    Hey Chris

    Thanks a lot, I did have whitespace.  I didn't even notice that I had put in a return in the template. 

    Issue resolved.  btw, the issue was occuring in all browsers. 

    Paul

Please Sign in or register to post replies

Write your reply to:

Draft