Shortcut for <dtml-call "REQUEST.set('key','value')">

Command: "set"

Overview

Introduction

Use this tag for a simple setting of REQUEST variable. The following commands have the same result:

<dtml-call "REQUEST.set('homeURL',getHref2IndexHtml(REQUEST)">

ZMSHelper:

<dtml-zms cmd="set" homeURL="getHref2IndexHtml(REQUEST)" >

General Syntax

Command: "set" - Attributes

Attribute "variableName"

Meta type :

any type which can be assigned to REQUEST

Allowed values :

any type which can be assigned to REQUEST

Default Value :

None

The name of the attribute (variableName) will get the name of the object in the REQUEST dictionary.

Command: "set" - Samples

Render a hyperlink

This renders a link to the homepage. (Note: Of course the following example could be done much easier by using the tag-command.)

HelperTag Syntax

Necessary DTML-code using the "Classic" Syntax