Shortcut to the function getObjProperty('propertyName',REQUEST)

Command: "prop"

Overview

Introduction

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)">

General Syntax

Command: "prop" - Attributes

Attribute "prop"

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"

Attribute "fmt"

Meta type :

string

Allowed values :

DATE_FMT, TIME_FMT, DATETIME_FMT

Default Value :

None

Formats the DateTime property. See ZMS documentation for details.

Attribute "shorten_inline_urls"

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.

Attribute "surrounding_tag"

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.

Command: "prop" - Samples

Display the the shorttitle of the current object

Display the the value of the description attribute of the current object in bold letters.

HelperTag Syntax

Necessary DTML-code using the "Classic" Syntax

Render content objects with special properties

This example calls the getBodyContent methods of all child objects with the property targetSlot='Left Column'.

HelperTag Syntax

Get the shortened URL of special object's link attribute

Supposed you have special object which has a property link of type url this gives you the shortened URL for the object.

HelperTag Syntax

Render an unordererd list of child objects

This code snippet renders a list of child items of the current object as unordered list.

HelperTag Syntax

Show the date of last change

Shows the date, the object was changed the last time.

HelperTag Syntax