Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we expose the name of the chosen theme file as a variable? #57

Open
djowett opened this issue May 20, 2016 · 0 comments
Open

Can we expose the name of the chosen theme file as a variable? #57

djowett opened this issue May 20, 2016 · 0 comments

Comments

@djowett
Copy link

djowett commented May 20, 2016

(moved from plone/plone.app.theming#104)

I'd like to be able to do this

 <!-- Multiple conditions for choosing a theme file --> 
<theme href="leaf.html"
       css:if-content="body.template-pontprennauview"/>

<!-- Manage portlets for covers  -->
<theme href="leaf.html"
       css:if-content="body.portaltype-collective-cover-content.template-manage-portlets"/>

<!-- A 'normal' page or content item -->
<theme href="leaf.html"
       css:if-content="#visual-portal-wrapper"/>

....
<!-- Cover all occasions we use a particular theme file without a complex condition -->
<rules if="$theme == 'leaf.html'">

....
</rules>

Correct me if I'm wrong, but I don't think that's currently possible/easy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant