> from turbogears import view
>
> def addvars(vars):
>     vars['breadCrumbLinks'] = breadCrumbLinks
>
> view.variable_providers.append(addvars)
>
> ----
>
> Then, you may refer to the function as tg.breadCrumbLinks from the
> templates.
>

Thanks, that got my custom variable into the kid template.  However,
the breadcrumb example they have in the docs.
http://docs.turbogears.org/1.0/BreadCrumb is highly dependent on a lot
of other assumed imports -- the only ref I can find to
BaseDataController is in the turbogears/fastdata/datacontroller.py
file.  Something I haven't used before.  IMHO, it is at best a very
confusing example to have listed in the official docs.  Or at least it
needs to have the assumptions written down.

Two more questions..
1)  Theses custom variables for the templates, do they normally go in
the main controller or is it good practice to put them in a file by
themselves? If so, is there a standard name for it, i.e
tgcustomvars.py, etc?

2) Are there any stock breadcrumb nav examples available? Or does
everyone just reinvent the wheel in every app that uses such a nav
device?

Thanks,

Jeff

--~--~---------~--~----~------------~-------~--~----~
 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