English 中文(简体)
Diazo: cs: if- content 和 cs: if- not- content 都匹配
原标题:Diazo: css:if-content and css:if-not-content are both matched
  • 时间:2012-05-21 10:44:38
  •  标签:
  • plone
  • diazo

我在Plone网站(4.2)使用 Diazo, 在规则. xml 文件中, 我有类似的东西(简化了,

    <rules css:if-not-content=".add-post-link">
        <replace css:content="#content" css:theme="#document-content" />
    </rules>

    <rules css:if-content=".add-post-link">
        <drop css:content=".documentFirstHeading" />
    </rules>

问题在于,“替换”和“停止”指令都同时适用,这意味着“cs:if-content”和“cs:if-not-content”这两个条件都得到满足,尽管它们是相辅相成的,也就是说,其中之一和唯一一项应属实。 (顺便说一句,如果我调换两个“规则”指令的顺序,结果是一样的)

有人能理解这行为吗 是虫子还是我漏掉了什么

最佳回答

听起来像它。 请将其简化为最小的失败示例( 最好是使用 dazorun 从指挥线上运行的示例), 并将其张贴到 < a href=" https://dev. plone. org/" rel="nofollow" > https://dev. polone. org/ 的错误追踪器上, 我试着查看一下 。

问题回答

暂无回答




相关问题
How to go from uml to app in zope (plone)

I have watched this keynote that talk about develop an app based on an UML model, but I can t find any tutorial or docs about it. Do you know any tutorial or documentation to help me? thanks

Install Plone egg as a Python module on Windows

I have a Plone site (Plone version 3.1.2) that I need to install a product called GrufSpaces on - (http://plone.org/products/grufspaces). However, it is a production site and so I can t easily take it ...

Plone with Apache Proxy

I have a plone zinstance set up through Apache Proxy on OS X Server 10.5. The server is set up with a single vhost on port 80, with Proxy & Proxypass directives to the Plone zinstance: ...

Zope / Plone 3 product uninstsall issue

Hey all, I uninstalled a content type that I d previously added and afterward I m still getting a warning of 2010-01-06 22:43:50 WARNING OFS.Uninstalled Could not import class myclass from module ...

plone.app.blob or z3c.blobfile?

I need a blob file field as part of a content type in plone. plone.app.blob s BlobField should provide this, but I can t find how to get a URL to download the file including the original filename (e.g....

Moving (very old) Zope/Plone Site to Django

I am ask to move data from a (now offline) site driven by Plone to a new Django site. These are the version informations I have: Zope Version (unreleased version, python 2.1.3 ) Python Version 2.1....

热门标签