Several conditions in diazo

I have a rule set in diazo where I want to say

"if not" # portal-column-two "And also not" # portal-column-one ", then do X" It seems to me that the rule for this will look something like

<rules css:if-not-content="((#portal-column-one) and (#portal-column-two))"> blah </rules>

I looked at the documentation and did not find anything obvious. I think I can wrap the ruleset as follows:

<rules css:if-not-content="#portal-column-one">
<rules css:if-not-content="#portal-column-two">
blah
</rules>
</rules>

But it seems a little inelegant. Id think that I could insert this correctly on one line?

Thoughts? Thanks

+4
source share
1 answer

You just need to do:

<rules css:if-not-content="#portal-column-one,#portal-column-two"> blah </rules>

This is just a css selector. If the selector is empty, the rules apply.

+4
source

Source: https://habr.com/ru/post/1607900/


All Articles