On Thu, Nov 17, 2016, Brian Rutledge <br...@energysage.com> wrote: >In our templates, I'd like to be able to identify a page as being part of a >section of the site, so that we can apply section-specific CSS. My initial >thought on how to do this would be to add a class to the <body> tag, but I >don't see an attribute on the Page model for this. What do y'all think of >adding that? Is there another way to accomplish this in the django CMS >ecosystem? I'd rather not define a new template for each section.
I've done this with another application. It maintained a tree representing the structure of an institution, and each node of that tree could be attached to a page. So each page, and all of its descendants, knew they belonged to such-and-such department or office or body. The application did a lot more besides. It might be overkill if identifying a page is all you need. Daniele -- Message URL: https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id Unsubscribe: send a message to django-cms-developers+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups "django CMS developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-cms-developers+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/django-cms-developers/20161118091047.1469017626%40mail.wservices.ch. For more options, visit https://groups.google.com/d/optout.