Hello,
I've been reading about how to organise content that would appear throughout a site, such as in a sidebar, footer etc. In my case I want a way for the editors to be able to edit contact details, that will always appear in the footer.
The technique should ideally adhere to the following:
- The content editors mustn't have to touch any code (other than perhaps entering a URL) - i.e. not a chunk,
- The method of retrieving the data and inserting it to the footer should be efficient
At the moment my approach would be to create a resource called something like "general site data", in which there would be the necessary TVs to hold the data, along with any other site-wide info that might be required.
From what I've read, I could then create a TV that's accessible by all other templates and use an @DOCUMENT (now called @RESOURCE, I believe?) binding, to reference the
general site data. However, wouldn't this also gather all other data from the resource, not just the footer info? My other concern is that it appears quite long-winded; a document referencing a TV referencing a document referencing a TV.
Instead, would it be a good idea to use an @SELECT binding to gather results from the db - or would this require a significant amount of data formatting, offsetting its directness with excessive data manipulation?
Any other techniques or suggestions would be very gratefully considered.
Chris