This release is a pre-release and may not be stable for production use.
Introduction
collective.bumblebee is a very simple integration package of the bumblebee output transformation framework.
To configure your rules, edit the IThemeSettings.rules settings in the configuration registry.
Read the bumblebee documentation at https://github.com/vangheem/Bumblebee on how to create your rule xml.
Extra Selectors
pt
Render a page template inline:
<after src-pt="" dst="#foo">
<h1 tal:content="context/Title" />
</after>
Available attributes in page templates are: context, here, object, published, request
tal
<after src-tal=”context/Title” dst=”#foo” />
Available attributes in tal expressions are: here, object, published, request, folder, portal
Extra Conditions
if-path
It also add an extra condition if-path:
<drop src="#foo" if-path="/foo/bar" />
or:
<drop src="#foo" if-not-path="/foo/bar" />
if-tal
Use tal and python expressions for if statement:
<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()" />
Available attributes in tal expressions are: here, object, published, request, folder, portal
Development Tips
- Turn bumblebee off
Append “?b.off=1” onto any url to not apply rules.
- Reload rules(for production)
Append “?b.reload=1” onto any url and be logged in as admin.
Changelog
1.0a3 ~ (2011-10-24)
make sure output works well with script tags
1.0a2 ~ (2011-09-22)
add tal and page template integration
Release files for collective.bumblebee 1.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| collective.bumblebee-1.0a3.zip | 21.9 kB | Details |
Release files / collective.bumblebee-1.0a3.zip
| Download URL | collective.bumblebee-1.0a3.zip |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d42426669fb6823a7670158ac60177a6ffdf500c42a5ecc64979962742d39ffe
|
|
BLAKE2b-256 checksum How to use checksums |
3dc91b2637f0c674d49dca3822f2e7bffe7f7b3da850e8ee769686d8f003d5f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |