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?
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.
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.
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
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.
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/
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
is working on a reply...
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.