How should I store global content that's displayed in header/footer?
Kind of a simple thing, a site I'm working on wants to have their address and a quote in their footer.
They'd like this to be manageable through Umbraco, as they want to change the quote pretty often, or the address if they change locations or something.
It doesn't need to be anything more than a Rich Text Editor. But how can I do that? The Footer isn't a document type, it's just part of the Master template.
How should I store global content that's displayed in header/footer?
Kind of a simple thing, a site I'm working on wants to have their address and a quote in their footer.
They'd like this to be manageable through Umbraco, as they want to change the quote pretty often, or the address if they change locations or something.
It doesn't need to be anything more than a Rich Text Editor. But how can I do that? The Footer isn't a document type, it's just part of the Master template.
I would usually put these on my root node (usually a document type of "Home), under their own tab
Agree with Daniel,
Also you could use dictionary items for this purpose.
You can't save RTE values in dictionary items, so the solution is to save site data in the root node or some other node.
Yes definitely recommend storing it on the root node, its the most flexible solution.
Using the Dictionary will only work with Textstring and does not scale well.
+1 on the root node thing, and then render the info recursively where it's supposed to go.
Doesn't even need to be recursive if it's just on the master template ;)
var site = Model.Content.Site() as Home;
I'm a sucker for Models Builder though...Dear Steven,
I have to agree with Daniel.
Put everything that you will need constantly on your theme in the header or footer.
Don't forget to use a recursive resource, for example:
is working on a reply...