Personal tools
You are here: Home Documentation How-tos CMF Expressions
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

CMF Expressions

This How-to applies to: Any version.
This How-to is intended for: Site Administrators, Integrators, Customizers, Developers

Brief overview of what CMF Expressions are and what variables they have available.

In different parts of the Plone or add-on product documentation you'll see references to the concept of CMF Expressions. They are (sparsely) documented in the Zope ZMI help, which most Plone users don't even know that exists. Here is a short overview of CMF Expressions.

Examples of places you need CMF Expressions are: the Plone Actions Tool, the Resource Registries, and add-on-products like CacheFu and PlonePortlets.

A CMF Expression is a TALES expression (just like the ones you use in Page Templates) but has some special names available:

object
The current object
object_url
The URL for the current object
here
Same as object
folder
The current object's containing folder
folder_url
The URL for the current object's containing folder
portal
The portal object
portal_url
The URL for the portal
member
The current user (None if user is anonymous)
nothing
Same as None in Python
request
Equals the python call getattr(portal, 'REQUEST', None)
modules
Alias for SecureModuleImporter
by Geir Baekholt last modified January 24, 2007 - 15:54
Contributors: David Convent
All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by