> > How can a filter set global template variables? Are there other
> > parameters to the filter routine than just the text which is about
> > to be filtered?
> >
> > I'd guess this needs a dynamic filter
>
> Yes, that's right. The dynamic filter gets a reference to the context
> and you can $context->stash->set('global.submenu', $data).
>
> > which is difficult (if at all
> > possible?!) to create with "plain" ttree - or what am I missing?
>
> You could do it using a plugin. [...]
>
Which is exactly what I wrote that I'm doing :-)
Well, almost. Currently my plugin creates an object which
processes template.name and then parses the result to set
a hash of object attributes which are then imported into
the PROCESS template's namespace.
As you wrote: There are, of course, many ways to do it. :-)
--
Cheers,
haj