Re: Feature idea: Page class attribute

2016-11-18 Thread Brian Rutledge
Thanks for the ideas. I think djangocms-page-tags or a page extension is the right approach, but for now, I've got: which renders the attribute value as "section-1/subsection-1/page-1". So, in my CSS, I can use: [data-cms-path*="subsection-1"] { } to style section elements. Of course, this w

Re: Feature idea: Page class attribute

2016-11-18 Thread Daniele Procida
On Thu, Nov 17, 2016, Brian Rutledge 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 tag, but I >don't see an attribute on

Feature idea: Page class attribute

2016-11-17 Thread Brian Rutledge
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 tag, but I don't see an attribute on the Page model for this. What do y'all think of a

Re: Feature idea: Page class attribute

2016-11-17 Thread czpython
Hello Brian, You can use https://github.com/nephila/djangocms-page-tags for tagging pages or build a custom solution using page extensions . On Thursday, November 17, 2016 at 10:54:43 AM UTC-5, Brian Rutledge wrote: >