Ticket #12905 (closed PLIP: fixed)

Opened 4 years ago

Last modified 4 years ago

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:2 Changed 4 years ago by eleddy

  • Status changed from new to confirmed

comment:3 Changed 4 years ago by tkimnguyen

Agree - making this configurable (on/off) would be ideal

comment:4 Changed 4 years ago by rossp

Posted  my review, +1 for merge.

comment:5 Changed 4 years ago by rossp

  • Description modified (diff)

Seconding, clients have often wanted this.

comment:6 Changed 4 years ago by rossp

We discussed adding a configurable depth which can be set to 0 to turn it off. If Nathan can get that in, we reached consensus to merge this in 4.3.

comment:7 Changed 4 years ago by vangheem

  • Status changed from confirmed to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.