Is it a good idea to store site settings in a special content node?
I want to create a node "Settings" with a document type containing all the props and settings for my site and then look for these prop settings in my view's code where needed
Ensuring the node is always created (more of an issue with a multiligual site where the tree structure might be being duplicated when adding new languages)
Maintaining global access to the node without hard coding anything.
This is why in a lot of cases the sites extend from a single root node (or root not per language) and settings are put on a tab in that document. This way you know you have easy access to settings wherever you are in the site.
The plus sides of having a separate document type however are that you can limit admin access to it. I don't think there would be any big issues.
Is it a good idea to store site settings in a special content node?
I want to create a node "Settings" with a document type containing all the props and settings for my site and then look for these prop settings in my view's code where needed
Are there any underwater rocks on this way?
PS. Backoffice ui is too complicated to develop..
I would say the only issues are:
Ensuring the node is always created (more of an issue with a multiligual site where the tree structure might be being duplicated when adding new languages)
Maintaining global access to the node without hard coding anything.
This is why in a lot of cases the sites extend from a single root node (or root not per language) and settings are put on a tab in that document. This way you know you have easy access to settings wherever you are in the site.
The plus sides of having a separate document type however are that you can limit admin access to it. I don't think there would be any big issues.
Hi Feeleen and Ian,
Can you provide screen of your backoffice?
Do you have one root node? One language?
Let us to look at your structure and we will decide is it make sense to use Settings node.
Sometimes it's better to store data in the root node.
Thanks,
Alex
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.