Hello!
I have master.xhtml with some kind of menu:
<ul class="menu">
<li py:for="pg in pages">
<a href="/pages/${pg.name}" py:content="pg.title">Page</a>
</li>
</ul>
Now when I am using AdminController I get error "builtins.NameError".
NameError: name 'pages' is not defined
*Question*: Is there a way to pass pages to AdminController's output?
As workaround I tried to use custom layout without menu:
class CustomAdminConfig(TGAdminConfig):
default_index_template = 'admin.xhtml'
class RootController(BaseController):
admin = AdminController(model, DBSession, config_type=CustomAdminConfig)
But it seems that admin.xhtml only applied to /admin page, not any of
subpages such as /admin/users. And I prefer to have menu on all pages,
including admin.
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/turbogears/5a5db6e0-ab34-4a4d-8d32-82f622c5db7c%40googlegroups.com.