Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Pete 213 posts 285 karma points
    Jan 21, 2012 @ 13:27
    Pete
    0

    How do I add settings/parameters to the content root node?

    I'd like to add settings/tabs to the content root node, but it does'nt seem to have a document type (no properties), is there a config file I can edit to add these or is it done a different way?

    Many thanks

    Pete

  • Rodion Novoselov 694 posts 859 karma points
    Jan 21, 2012 @ 13:50
    Rodion Novoselov
    0

    AFAIK there's no way to do it since this node is just a "virtual" container for other content. If you need some "global properties" for you site then the usual way to do it is to add them to the document type of your "home page" - in this case you can always easy get them from any document using recursive field query.

  • awm 187 posts 376 karma points
    Jan 21, 2012 @ 14:15
    awm
    0

    You could try having a 'Site' node for global settings. Something like this:

    http://cultiv.nl/blog/2010/12/19/tip-of-the-week-the-ultimate-site-structure-setup/

  • Jan Skovgaard 11280 posts 23678 karma points MVP 12x admin c-trib
    Jan 21, 2012 @ 16:51
    Jan Skovgaard
    0

    Hi Pete

    As Rodion and Alimac is saying above this can be done in different ways. The right way depends on your context and the user experience imho. Since Umbraco in a default installation is really just an empty shell it's all up to the developer to define what document types are needed and how they're being structured.

    If you're dealing with a Single site instance (where there is only 1 site in the content tree) then you can add a settings node at the same level as you actual website. Or you can have a site node on which you place your settings and then place your websites in this branch so it would look something like

    Site (Settings on this node)
        Website (COM)
        Website (NL)

    You could also have a settings tab on each of your root nodes represeting a website. Since you can have for instance different google analytics tracking codes for each site it would make sense to place a multiple text property on a "settings" tab where it's possible to place the tracking code since it's specific for this site.

    Hope this makes sense :)

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies