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

Re: Changing plugin settings results in missing migrations

2016-11-18 Thread Angelo Dini
I'll be porting the fix to the other core addons, will try to release them around early next week. On Wednesday, 16 November 2016 20:20:12 UTC+1, Brian Rutledge wrote: > > I posted this issue to djangocms-style > , but it seems to me > that it

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