plone-3.x

Adding an class to body element with XDV

六眼飞鱼酱① 提交于 2019-12-01 06:51:52
问题 I want to style some forms in Plone3+collective.xdv but I don't want all forms to get the special style. So I'd like to add a special styled-form class name to the class attribute of the body element just when displaying certain templates: contact-info sendto_form PFG forms So I thought that I could manage to perform this with XDV in order not to modify those templates. By using the if-content directives in XDV rules I can check if those templates are being displayed: css:if-content="body