replace
Diazoとルールを使用していくつかの CSS スタイルを置き換えようとしていattributes
ますが、これまでのところ、それを理解できていません。
これまでのところ、 、、、およびにDiazo replace
、copy
、before
、ルールを使用することに成功しています。after
drop
css:content
css:theme
css:content-children
css:theme-children
私の現在のマークアップは Twitter Bootstrap 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
ルールを使用して、クラスを my から削除でき#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"/>
リンクが Plone からコピーされるcopy
ルールの例があります:href
#portal-logo
<copy attributes="href" css:content="#portal-logo" css:theme="#logo" />
私は近くにいるように感じます。必要なのは同様の例だけです。基本的な構文の Diazo ドキュメントを見てきましたが、まだこれを理解できていません。
どんな助けでも大歓迎です。応答を得る前にこれを理解したら、質問を更新します
ありがとう。