Ticket #12905 (closed PLIP: fixed)
Provide more body classes for document plip
Reported by: | vangheem | Owned by: | vangheem |
---|---|---|---|
Priority: | minor | Milestone: | 4.3 |
Component: | Templates/CSS | Version: | 4.3 |
Keywords: | Cc: |
Description (last modified by rossp) (diff)
Proposer: Nathan Van Gheem
Seconder: Ross Patterson
Motivation
It's useful to easily to able to apply css for one section, more than one folder deep in the content tree. Also, it's useful to be able to provide a css rule just for one page.
Feature overview
- provide body classes for each folder section. The path /folder1/folder2/folder3/page1 would yield classes of folder1, folder1-folder2, folder1-folder2-folder3, folder1-folder2-folder3-page1
Deliverables
- customize plone.app.layout.globals.layout:LayoutPolicy.bodyClass to return more body classes.
- tests
Risks
- none
Participants
- Nathan Van Gheem(vangheem)
Change History
comment:1 Changed 4 years ago by vangheem
- Component changed from Unknown to Templates/CSS
- Type changed from Bug to PLIP
- Milestone changed from 4.x to 4.3
comment:3 Changed 4 years ago by tkimnguyen
Agree - making this configurable (on/off) would be ideal
comment:5 Changed 4 years ago by rossp
- Description modified (diff)
Seconding, clients have often wanted this.
Note: See
TracTickets for help on using
tickets.