Example:
Two templates:
(1) foo
(2) bar
in foo you have:
{embed="bar"}
The template hit count goes up for ‘foo’ but not ‘bar’. Is there a way to have all embedded templates’ hit counters increment?
...
I understand that in many cases, this would probably not be desirable. So it should probably be a parameter of embed, i.e. {embed="bar" increment_hit_counter="true"}
If I wanted to build an extension for something like this, is that even possible? I don’t see a low-level enough hook that would let me inside the template tag parsing. I was thinking if I could add custom code at parse time for “embed”. I don’t know.
Any thoughts?
-Aaron