我使用Diazo在特定网址上部署静态html文件'ticker.html'。该网页根本没有使用任何内容。如何使用plone.app.theming提供静态HTML
这是rules.xml中:
<rules xmlns="http://namespaces.plone.org/diazo"
xmlns:css="http://namespaces.plone.org/diazo/css"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<rules if-path="/Plone/ticker/ /ticker/">
<theme href="ticker.html" />
</rules>
<rules css:if-content="#visual-portal-wrapper" if-not-path="/Plone/ticker/ /ticker/">
<theme href="index.html" />
The rest of the theme...
</rules>
</rules>
它工作正常和HTML是正确的,但的http://localhost:8080/Plone/ticker
返回代码为404。只有当我建立在这个位置,我得到Plone中一些虚拟内容一个200返回的也略有改变:当有一个虚拟的内容重氮增加了一个基地,标签头:
<base href="http://localhost:8080/Plone/ticker/" />
我怎么能告诉重氮完全忽略的内容,当返回200即使在那里是不是虚拟内容?
如果您想知道:我使用Diazo,因为plone.app.themeing允许通过网页修改静态页面。
这是一个遗憾。我想用独立的Diazo或Deliverance来解决问题并非如此?但那也意味着我会放弃主题编辑。我将重写从plone.app.theming改为apache,并通过仍然部署主题中的静态文件来保留主题编辑器:'RewriteRule ^/ticker http:// localhost:8080/VirtualHostBase/http/www.mysite.com :80/Plone/VirtualHostRoot/++主题++ myproject.theme/ticker.html/[L,P]' – pbauer 2014-09-05 18:23:20