More in this section

Forums / General Discussions / Sitewide properties

Sitewide properties

2 posts, 0 answered
  1. higgsy
    higgsy avatar
    336 posts
    05 Aug 2010
    28 Jan 2011
    Link to this post

    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.

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    31 Jan 2011
    Link to this post
    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.

    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
2 posts, 0 answered