Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COI was hoping someone would write the code for me, since I cannot seem to to do. You say "you normally do not put css into your rules xml" Then why does Diazo have this on their site? Modifying the theme on the fly Diazo allows you to modify the theme using “inline” markup in the rules file. You can think of this as a rule where the matched content is explicitly stated in the rules file, rather than pulled from the response being styled. <after theme-children="/html/head"> <style type="text/css"> /* From the rules */ body > h1 { color: red; } </style> </after>
      singulars
    2. CODiazo lets you use CSS *selectors* to choose which blocks of HTML to manipulate, but a Diazo rules file is not where you do the actual styling of HTML with CSS, that is still done in CSS as normal. You may want to read the Diazo docs a bit more closely to understand the idea of how Diazo is about transforming HTML between Plone's template output and your own custom HTML templates.
      singulars
    3. COYes, I understand that. I have all of my styles in a css file. I am not putting any styles *except one* in the rules file. I am doing this because I want to change the previous style for that div (specified in the css) dynamically on the fly on one page only. In other words, for that one div on that one page, I want the style to change, but on all other pages the div takes the style from the css file. I need to know how to write that in the rules.xml for special cases.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload