Bumblebee集成到plone
项目描述
简介
collective.bumblebee 是一个非常简单的 bumblebee 输出转换框架的集成包。
要配置您的规则,请编辑配置注册表中的 IThemeSettings.rules 设置。
请访问 https://github.com/vangheem/Bumblebee 上的 bumblebee 文档,了解如何创建您的规则 xml。
额外选择器
pt
内联渲染页面模板
<after src-pt="" dst="#foo"> <h1 tal:content="context/Title" /> </after>
页面模板中可用的属性:context、here、object、published、request
tal
<after src-tal=”context/Title” dst=”#foo” />
tal 表达式中可用的属性:here、object、published、request、folder、portal
额外条件
if-path
它还添加了一个额外的条件 if-path
<drop src="#foo" if-path="/foo/bar" />
or
<drop src="#foo" if-not-path="/foo/bar" />
if-tal
使用 tal 和 python 表达式进行 if 语句
<drop src="#foo" if-tal="here/@@plone_context_state/is_portal_root" /> <drop src="#foo" if-tal="python: 'foobar' in here.Title()" /> <drop src="#foo" if-not-tal="python: 'foobar' in here.Title()" />
tal 表达式中可用的属性:here、object、published、request、folder、portal
开发提示
- 关闭 bumblebee
将“?b.off=1”附加到任何 URL 上以不应用规则。
- 重新加载规则(生产环境)
将“?b.reload=1”附加到任何 URL 上,并以管理员身份登录。
变更日志
1.0a3 ~ (2011-10-24)
确保输出与 script 标签兼容
1.0a2 ~ (2011-09-22)
添加 tal 和页面模板集成
项目详情
关闭
集体.bumblebee-1.0a3.zip 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d42426669fb6823a7670158ac60177a6ffdf500c42a5ecc64979962742d39ffe |
|
MD5 | 9a6eefbf8725b390b0a6881ce17455f7 |
|
BLAKE2b-256 | 3dc91b2637f0c674d49dca3822f2e7bffe7f7b3da850e8ee769686d8f003d5f1 |