AFAIK this functionality is not available out of the box in mezzanine. Perhaps it should since this is a quite common usecase. My poor workaround uses templatetags in base.html checking page.slug... Cheers, Gerald
Am Donnerstag, 1. Oktober 2015 18:56:38 UTC+2 schrieb xnx: > > I have a set of fairly deeply-nested Pages in my Mezzanine project, e.g. > /shopping/grocery/bananas/1/ > and I want to customize the template used for everything below and > including "grocery". I can customize the template for grocery by extending > "base.html" in a template called > /my_theme/templates/pages/shopping/grocery.html. But how do I use the > same template for all child pages of grocery? The documentation suggests > that I can create another template, called > /my_theme/templates/pages/shopping/grocery/page.html and indeed this is > used for /shopping/grocery/bananas/, but only for the immediate children of > grocery/, not for the children of bananas/ etc. > How can I automatically use the same custom template for > /shopping/grocery/ and all its children, grandchildren, > great-grandchildren, etc.? > The Pages involved are ordinary Mezzanine Pages, so they don't live in > their own app. > Thanks, > Christian > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
