How to apply a rule to the home page in plone.app.theming diazo rules.xml

I am trying to create a specific rule for the home page of a site. Currently I use this rule:

   <before css:theme="#mppeditbar" content="/html/body/*" if-path="/Plone/" href="slideshow/index.htm"/>

It works for localhost, but not with a proxy channel before Plone.

How can I apply this rule to the home page of my site?

+3
source share
2 answers

I assume that you are using shared hosting with a proxy server. This will change the path from / Plone / to /. You can include multiple space-separated paths in the if-path, but with Plone checking, the body class is usually the easiest way to do this.

-, . plone.app.theming, , , if-path = "/" , , localhost: 8080/Plone.

+2

- css:if-content="body.section-front-page" . , , , . css:if-content="#frontpage-scrollable .

+3

All Articles