Hi!
I can not find any documentation for @document (evo)
I am using things like @document 33, that gets the "content" information of that document...
but, what about accessing to any other TV of that document? can that be done using @document?
If you explain what you want to achieve, maybe I can help better.
well, I want to show the same maxigallery in a lot of pages (all the site, almost)
I have it working...
using the maxigallery call in the [*content*] field of a document...
and then, retrieving the gallery in other templates using @document XX
just trying to do it in a better way
I can think of some other ways, but I’m not sure they’re any better.
You could put the MaxiGallery tag in the template and just use a different template for the pages where you don’t want it to show. That would be faster and more efficient, but it might be harder to maintain.
You could also use a TV (ShowMG) set to "Yes" or "No" and use a snippet in your template that checks that TV and returns the MaxiGallery tag on the pages where you want it to show and nothing on the others.
It could also be done with a PHX conditional in the MaxiGallery tag in the template.
That said, I don’t see anything seriously wrong with what you are doing and the speed differences would probably be trivial, especially if the pages are cached.
-
☆ A M B ☆
- 3,141 Posts
What about a chunk containing the call to MaxiGallery?
Perhaps combined with something like a ShowMG TV as Bob mentions.