Sitewide properties
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
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