Copied to clipboard

Flag this post as spam?

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


  • Vincent Ashby-Smith 67 posts 196 karma points
    May 19, 2014 @ 14:37
    Vincent Ashby-Smith
    0

    Possible bug getting current page on SmartShowComments partial

    Hi Luke, i've discovered a small bug on the SmartShowComments partial in that the piece of code which gets the current page, doesn't always seem to get the correct id for that page.

    var CurrentPage = Umbraco.Content(SmartBlogLibraries.Helpers.Cms.Id.ToString());

    I'm not sure if this has anything to do with caching also but I made a small amendment which using the inbuilt Umbraco.NodeFactory and this seems to work every time.

    var CurrentPage = Umbraco.Content(Node.GetCurrent().Id);

  • Luke Alderton 192 posts 509 karma points
    Jul 22, 2014 @ 12:07
    Luke Alderton
    0

    Hi Vincent,

    Thank you for reporting this issue, I've made the changes now and hopefully you won't see this error any more.

    Thanks, Luke

Please Sign in or register to post replies

Write your reply to:

Draft