I have looked through the Mezzanine documentation, but not found a solution
to this -- I have a RichTextPage, "Foo", with child pages "Bar 1", "Bar 2",
etc. I'd like the Foo page and all its children to have the user
login/logout panel on them (but not have it on other pages of my site).
I can cre
On Wed, May 4, 2016 at 7:29 AM, Christian Hill wrote:
> I have looked through the Mezzanine documentation, but not found a
> solution to this -- I have a RichTextPage, "Foo", with child pages "Bar 1",
> "Bar 2", etc. I'd like the Foo page and all its children to have the user
> login/logout panel
From the docs I get the idea that hierarchy-based templates should be
working. Have you tried this?
http://mezzanine.jupo.org/docs/content-architecture.html#page-templates
You may have found a bug if it doesn't work that way.
Assuming that doesn't work, here are other options for your consider
Thanks, Eduardo -- I get the sense from the documentation you refer to that
this technique only works on page models that are subclassed from Page
itself, as Author is in that example.
Rodrigo is recommending this approach, so I guess I'll do it, but it seems
a little odd to me that I need to crea
Chris, Eduardo,
Having read your emails, I kept thinking about this and I realized that
another not-so-complicated solution may be adding a boolean field to the
page model:
(
"mezzanine.pages.models.RichTextPage.show_login",
"BooleanField",
(u"Show Login",),
{"
Just for the record, I just tried the method described in the docs, and it
works. Here's my page structure:
- Parent page (Rich Text page, slug = /parent/)
- Child 1 (Form, slug = /parent/child-1/)
- Child 2 (Rich Text page, slug = /parent/child-2/)
I have created custom templa