Sitewide properties

Posted by Community Admin on 03-Aug-2018 16:57

Sitewide properties

All Replies

Posted by Community Admin on 28-Jan-2011 00:00

Hi,

Is there anyway of storing sitewide properties in V4? For example, I have a widget that has a button - that button needs to link to the "contact us" page by default, or if the user chooses they can open the control designer of that widget and pick a different page. I dont want to hard code the url of the contact us page to /contact-us/ as of course the content editor could change it.

therefore I was hoping it would be possible to set a global property with sitefinity and store the ID of the page - it obviously has to be done from within the CMS, not in code.

If not, I'll raise a feature request.

Regards,
higgsy

Posted by Community Admin on 31-Jan-2011 00:00

Hi higgsy,

Using the pages API you can get the page ID and then its url. The ID of the page never changes, so you can have the correct data for the page even changing the name, title, url etc.
You could try string the ID as appSettings in the web.config.

Greetings,
Ivan Dimitrov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed