A quick way to display the value of a specific attribute in the current context. ZMSHelper's "prop" command is handy shortcut for
<dtml-var "getObjProperty('propertyName',REQUEST)">
| Meta type | : | string |
| Allowed values | : | The name of the attribute to be displayed. |
| Default Value | : | n/a |
This is the only required attribute. The cmd attribute can be omitted. To display the results of getBodyContent(REQUEST) just put in body, e.g. prop="body"
| Meta type | : | string |
| Allowed values | : | DATE_FMT, TIME_FMT, DATETIME_FMT |
| Default Value | : | None |
Formats the DateTime property. See ZMS documentation for details.
| Meta type | : | boolean |
| Allowed values | : | true or false. |
Shorten links found within the returned text. "http://host:port/folder1/folder2" with "/folder1/folder2". Useful in combination with prop="body" to replace links in html blocks returned by the getBodyContent method.
| Meta type | : | String |
| Allowed values | : | Any valid HTML tag as String. |
| Default Value | : | None |
Puts an opening and closing HTML tag around the resulting expression. E.g. surrounding_tag="li" puts a <li>...</li> around the result.
Display the the value of the description attribute of the current object in bold letters.
This example calls the getBodyContent methods of all child objects with the property targetSlot='Left Column'.
Supposed you have special object which has a property link of type url this gives you the shortened URL for the object.
This code snippet renders a list of child items of the current object as unordered list.
Shows the date, the object was changed the last time.