But it would seem much, much easier to use TV’s (or even chunks) for this content, no matter where it goes in the template. Ditto. When I have content that is similar but switches around, a TV with chunk names (and if only used once, the actual code) is the way that I usually go.
On my site, I have a simple two colum layout that sounds similar to yours. The left is the "main" area where I call content from the resources/pages. In the right column, my template has an empty div that simply calls a TV I create called "sub-content" which is just a plain text area. The actual content is then saved in various chunks, which I call from my TV and have set as a *default* value. I only have a few pages where this will ever need to change, so with this setup, I only ever need to change the sub-content area on very few pages. This setup is also quite modular, so if only one peice of the sub-content area needs to change, I can just create/call a different chunk.
I haven’t yet messed around with locking the TV for editing, as I am the only user on this site, but it looks like that option is readily available to keep other users from accidentally messing those areas up.
Swill
Thanks for the info. I will definitely reconsider my design strategy going forward. That said, is there anything actually ’wrong’ with putting textual content directly into a template?
You can easily fix this by placing that re-usable content in a chunk and calling the chunk from within your templates. I believe I saw someone write that you basically want to use chunks for anything you are going to write more than 3 times.
It’s just a question of maintenance. If the text will appear in all docs with that template and no docs with other templates, there’s nothing wrong with it. If you have a lot of templates with the same content, though, you have to edit them all to change it.
Didn’t think of it from that standpoint, thanks!
It’s "wrong" from an MVC standpoint, because in theory, you want to completely separate the "view" (formatting) from the "content," but if it works for you, go for it.