More in this section

Forums / Developing with Sitefinity / Adding Custom Properties to Usercontrol

Adding Custom Properties to Usercontrol

2 posts, 0 answered
  1. Phil
    Phil avatar
    4 posts
    24 Mar 2015
    31 Mar 2015
    Link to this post

    Hello, Im new to sitefinity, I've been having trouble pulling a property set on my page in the cms from a usercontrol. Looking online I should be able to do this:

    this._CurrentPage = new PageManager().GetPageNode(new Guid(SiteMapBase.GetCurrentProvider().CurrentNode.Key));
    imgToolbox.ImageUrl = this._CurrentPage.GetValue("Thumbnail");

    But PageNode apparently doesnt contain GetValue though the forum posts ive seen show it does??!

    Any help would be much appreciated.




  2. Laurent Poulain
    Laurent Poulain avatar
    17 posts
    31 May 2017
    02 Apr 2015
    Link to this post

    Could you detail a bit what you're trying to achieve? Using a small sample I was able to get some page attributes using PageNode.Attributes, but I am not sure this is what you are looking for.

    Also, could you provide the link to the forum post you're mentioning?

    Sitefinity Laurent
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered