Ticket #1142 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

CpsSkins -> "Visibiliy" -> one more choice needed

Reported by: tsoulcie_@… Owned by: jmorliaguet
Priority: P2 Milestone: CPS 3.4.0
Component: CPSSkins Version: TRUNK
Severity: normal Keywords:


Would be nice to have one more option in the visibility tab such as : "Visible everywhere except starting from ... " (critère d'affichage : visible de partout sauf A PARTIR DE ... in french). Would be useful to exclude a box in a WHOLE subsection, for example.

Change History

comment:1 Changed 14 years ago by jmorliaguet

  • Status changed from new to assigned
  • Owner changed from jmo to jmorliaguet
  • Version changed from 3.0.0 to TRUNK

the visibility criteria for portlets are relative to the folder in which they are located, indepently of what the folder is called.

portlet guards are better suited for this I guess, so this depends on #1077

otherwise a simple solution is to use portlet override with a blank portlet (custom portlet) that will replace all portlets located above a given folder.

comment:2 Changed 14 years ago by jmorliaguet

  • Status changed from assigned to closed
  • Resolution set to fixed

fixed in [29838], to display a portlet everywhere except starting from sections/somesection/

you can write in the portlet's guard form under 'Expression'

python: not here_rpath.startswith('sections/somesection/')

note that 'here_rpath' has a trailing '/' to make it easier to distinguish between sections/somesection/ and sections/somesection_B/

comment:3 Changed 14 years ago by jmorliaguet

the variable was renamed as 'rpath_slash' to avoid convention conflicts with 'rpath' (without '/').

python: not rpath_slash.startswith('sections/somesection/')
Note: See TracTickets for help on using tickets.