This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Integration of Bumblebee into plone

Project Description

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 History

Release History

This version
History Node

1.0a3

History Node

1.0a2

History Node

1.0a1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
collective.bumblebee-1.0a3.zip (21.9 kB) Copy SHA256 Checksum SHA256 Source Oct 25, 2011

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting