Cms Macros

From OpenCms Wiki
Revision as of 18:23, 23 March 2007 by Pam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Using Cms Macros

OpenCms has a macro language that you can use parameters to your jsp tags. This is particularly useful for cms:contentload.

The macros are resolved using CmsMacroResolver. This "resolves macros in the form of ${key} in an input String. The macro names that can be resolved depend of the context objects provided to the resolver using the set... methods."

Some examples:

  • ${*} - resolves to any file

You can also use build in cms macros, such as:

  • ${property.collector} - resolves to a property called collector
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox