Works with CSS but not Diazo <drop> rule

129 Views Asked by At

I'm trying to remove the href attribute from a folderish item in the nav tree for a custom view (Plone 5, custom Barceloneta theme).

I can use the same CSS path to get to the link with the attribute I want to drop and it works.

.subsection-questions-service-indicator-codes #portal-column-one li a.navTreeFolderish

But it doesn't work in this Diazo rule and I don't understand why. (Actually, I can't get anything in #portal-column-one to "drop.")

  <drop css:content=".subsection-questions-service-indicator-codes #portal-column-one li a.navTreeFolderish" attributes="href" />

Any help is appreciated. Thanks.

1

There are 1 best solutions below

2
TheAcolyte On

Are you working from rules.xml? If you're applying styles using a traditional stylesheet, the docs state that CSS selectors are replaced by XPath selectors.

Of course, seeing some code would allow us to give better feedback.