Hi Folks,

In my application's master template I have a menu which displays
categories. These are not static but fetched from the database and
passed in via the controller. Currently, in order for this menu to
work propperly I have to fetch those entries in every single function
that exposes some template, since I want that "master menu" to be
displayed correctly.
I can't just make the categories persistent entries or even hard coded
into the templates, since they shall be changed dynamically. But I
really do not want to spam my controller by adding that category
information into every single "return dict(...)" call.
Is there some way to have the master template always pull that
information from the (root) controller by itself, automatically ? In
other words, can I make the controller send that information into the
current template (the one being exposed by the current function)
automatically ?
I'm not too much into templates, since that's simply not my part of
the application (more controllers and db). Some hint to get me in the
right direction would be appreciated.

Regards,
 Amnu

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en.

Reply via email to