我使用的Plone 4.0.1 + collective.xdv 1.0rc11,我需要使用不同的主題。collective.xdv - 定義替代主題遊變換的默認主題
我試圖描述in a recent question/answer做,但是當我插入一個新的主題有一個條件我沒有得到任何改變,在所有的默認主題。這裏是什麼,我嘗試了一些例子:
<rules css:if-content="body.section-mysection">
<theme href="mysection.html" />
</rules>
此結束在:
Traceback (innermost last):
Module ZPublisher.Publish, line 132, in publish
Module zope.event, line 23, in notify
Module zope.component.event, line 26, in dispatch
Module zope.component._api, line 138, in subscribers
Module zope.component.registry, line 323, in subscribers
Module zope.interface.adapter, line 575, in subscribers
Module plone.transformchain.zpublisher, line 93, in applyTransformOnSuccess
TypeError
雖然這些:
<theme href="mysection.html" if-path="/mysection/"/>
<theme href="mysection.html" css:if-content="body.section-mysection"/>
兩個工作,爲給定部分但對於門戶網站的其餘部分根本沒有變化。
我試圖用<theme href="index.html" />
在rules.xml中指定默認主題(即使它已經註冊到@@ xdv-settings)但沒有運氣。
缺少什麼我在這裏?
由於提前, SIMO
嗨Alex,謝謝!我會嘗試,但文檔說「plone.app.theming與Plone 4.1或更高版本一起工作。」是否有任何解決方法/ backport知道嗎? – simahawk 2011-05-05 09:35:05
哦!不,對不起,我猜對於<4.1 collective.xdv仍然是最好的選擇 – aclark 2011-05-08 20:13:30
應該可以得到plone.app。主張與Plone 4.0一起合適的KGS工作,但我沒有時間來保持自己,Plone 4.1即將到來。 – 2011-05-11 12:21:01