plone - Change Diazo theme elements based on user role -


is possible make elements of diazo theme depend on user role in plone? instance: offer different header image in theme specific roles, , have these change on site user logs in.

this question may related, prefer manage through role assignments.

this might possible specifying theme parameter. untested, define parameter this:

roles = python: portal_state.member().getrolesincontext(context) 

or like:

is_manager = python: 'manager' in portal_state.member().getrolesincontext(context) 

then use parameter in rules.xml file. switch theming off managers:

<notheme if="$is_manager" /> 

that nothing headers, should able extrapolate that.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -