Adding Custom Properties to Usercontrol

Posted by Community Admin on 04-Aug-2018 11:25

Adding Custom Properties to Usercontrol

All Replies

Posted by Community Admin on 31-Mar-2015 00:00

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.

Thanks

Phil

 

Posted by Community Admin on 02-Apr-2015 00:00

Hello,

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?

Regards,
Sitefinity Laurent
Telerik

 
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
 

This thread is closed