Copied to clipboard

Flag this post as spam?

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


  • lynn eriksen 3 posts 23 karma points
    Mar 01, 2012 @ 22:09
    lynn eriksen
    0

    rss razor template issue

    I have found an issue with the uBlogsy rss razor macro. I am having an issue where the call to create the 'blogUrl' field is causing an exception. Looking at the code I am making the following recomendations:

    1) use blogUrl only for the channel link and format directly from the Request.Url

    string blogUrl = Request.Url.ToString();
    

    2)  create a new field called 'blogBase' getting just the authority of the Request.Url. This can be used for item links:

    string blogBase = Request.Url.GetLeftPart(UriPartial.Authority);
    
    <comments>@blogBase@p.Url</comments>
    

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Mar 04, 2012 @ 22:19
    Anthony Dang
    0

    Which version of uBlogsy and Umbraco are you using?

     

Please Sign in or register to post replies

Write your reply to:

Draft