-
☆ A M B ☆
- 24,524 Posts
I would make the Ditto calls in TVs, and have each template’s TV with the appropriate Ditto call.
-
☆ A M B ☆
- 24,524 Posts
I do this all the time for sidebar content. Make a TV, assign it to a template so docs using that template will get it, then make it a "textarea" type, and for the default just put in the desired Ditto call. Then put the TV tag in the template where you would normally put the Ditto call. Edit whatever needs to be edited on a page-by-page basis.
I usually use @INHERIT as my default, that way you only have to edit the TV for the parent doc/folder of each section. For example, if you had document 3 as a parent for a subsection, edit document 3’s copy of the TV to have the Ditto call, with the startId as 3, and all of its children will inherit that Ditto call.
With this sort of thing, you may not even need multiple templates. Just use TVs for your various sidebar, menu, and other unique blocks with @INHERIT and edit for each section in the section parent’s TV.
i think your solution is great for 10 documents.
note for later : if one day you have more documents in your list, try
SSR snippet to reduce drastically the number of SQL queries. Very useful when you have a call in a ditto call..
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save