+1-888-365-2779
Try Now
More in this section

Forums / Suggestions / custom values in admin

custom values in admin

7 posts, 0 answered
  1. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    05 Dec 2008
    Link to this post
    I think it would be helpful to be able to define custom global values that are accessible in the Administration section of the admin panel. Specifically the boolean value "PublicSiteOffline" comes to mind. using the example given here: http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bgdtaa.aspx I was able to make a module that redirects external users to an offline message, and expanded it with a boolean value to determine if it should be active or not.

    unfortunately changing the value causes the module to recompile. it would be much better if this thing could read something like CmsSettings["PublicSiteOffline"] or something similar to that so that changing this setting would have an instant result.

    I'm certain that other global settings could be set this way as well, and centralizing them into the Administration section (as opposed to having to develop a whole module just for this) would let users be able to quickly define global fields with minimal coding.

    BTW if anyone is interested the way I handled this was to make a blank file called offline.true. the module checks if this file exists it proceeds to redirect. To bring the site back up, we rename the file to offline.false, so of course, then the original file no longer exists and the redirect is not executed. I imagine this is similar to how your global appOffline.htm works...

    anyway just an idea, thanks for listening!
  2. Georgi
    Georgi avatar
    3583 posts
    Registered:
    20 Sep 2016
    08 Dec 2008
    Link to this post
    Hello SelArom,

    This is exactly what we want to do. Such an option, as well as moving most of the options from the web.config file to the Administration would be a great idea.
    As for the app_offline.htm, it is a standard way for the .net web sites, which means that microsoft implemented this ;)

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    25 Mar 2010
    Link to this post
    Is anything like this available in v3.7 yet? I too would like to create a collection of global settings for the admin to change in the control panel. Perhaps in the "Administration" section next to "Permissions", I would like to put something there called "Settings". It should work sort of the same way metafields work (global metafields?). Any suggestions on how to get this done would be appreciated.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    19 Sep 2016
    26 Mar 2010
    Link to this post
    Hi bemara57,

    We will have this feature from Sitefinity 4.0. You could create an XML that will be populated from the backend UI. Then you could read and parse this XML. You could also create a database table where to store this settings if you do not want to use XML file.

    Sincerely yours,
    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.
  5. Daniel Tharp
    Daniel Tharp avatar
    21 posts
    Registered:
    24 May 2006
    20 Jun 2012
    Link to this post
    Is there a way to formally store and manage global variables in the administration console in 5.x?As discussed in this thread it sounded like this was going to made available in 4.x but we can't seem to find where.  We would like to access these through custom widgets for external web service auth settings, etc...  We could certainly do this in the web.config or in an external XML file but were hoping there is better way.

    We are relatively new to Sitefinity so any help here would be much appreciated.
  6. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    20 Jun 2012
    Link to this post
    Daniel,

    indeed the new Sitefinity (4+) does have a custom configuration class that you can inherit to store your own settings using Sitefinity.

    For more information and an example, take a look at this post: reating Custom Configuration Settings in Sitefinity 4

    Hope this is helpful!
  7. Daniel Tharp
    Daniel Tharp avatar
    21 posts
    Registered:
    24 May 2006
    22 Jun 2012
    Link to this post
    Thanks SelArom.  That did it for us.
Register for webinar
7 posts, 0 answered