CMF Expressions
This How-to applies to:
Any version.
This How-to is intended for:
Site Administrators, Integrators, Customizers, Developers
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.
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 (
Noneif user is anonymous) - nothing
- Same as
Nonein Python - request
- Equals the python call
getattr(portal, 'REQUEST', None) - modules
- Alias for
SecureModuleImporter