我想用Diazo replace
和attributes
規則替換一些CSS樣式,但到目前爲止我還沒有弄明白。Diazo - 替換css屬性
到目前爲止,我一直在使用重氮replace
,copy
,before
,after
,爲css:content
,css:theme
,css:content-children
和css:theme-children
drop
規則成功。
我當前的標記是基於關閉Twitter的引導3.0如下:
<div class="container">
<div class="row">
<div id="content" class="col-md--8 well">
<p>Plone content here</p>
</div>
</div>
</div>
使用drop
規則我可以從我#content
刪除類:
<drop attributes="class" css:theme="#theme"/>
但我不能圖瞭解如何添加css類col-12
。col-12
在我的主題中並不存在。我曾嘗試以下規則至今:
<replace attributes="class col-12" css:theme="#theme"/>
<replace attributes="col-12" css:theme="#theme"/>
我有一個copy
治所在href
鏈接從Plone的#portal-logo
複製的例子:我覺得像我靠近
<copy attributes="href" css:content="#portal-logo" css:theme="#logo" />
,我需要的只是一個類似的例子。我一直在尋找Diazo文檔Basic syntax,但還沒有能夠找出這一個。
任何幫助,將不勝感激,如果我想出解決辦法之前,我得到迴應,我會更新我的問題
感謝。
http://developer.plone.org/reference_manuals/external/diazo/recipes/adding-an-attribute/index.html有幫助嗎? – SteveM