From efa8b9e7ce1c700d31fee7d16351159ac5f2e71f Mon Sep 17 00:00:00 2001 From: carl <> Date: Wed, 18 Jan 2006 15:01:50 +0000 Subject: Fixed a name bug Template pages --- .../quickstart/protected/pages/Configurations/Templates3.page | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'demos/quickstart/protected/pages/Configurations/Templates3.page') diff --git a/demos/quickstart/protected/pages/Configurations/Templates3.page b/demos/quickstart/protected/pages/Configurations/Templates3.page index bec25d13..c1e58e25 100644 --- a/demos/quickstart/protected/pages/Configurations/Templates3.page +++ b/demos/quickstart/protected/pages/Configurations/Templates3.page @@ -1,7 +1,7 @@

Templates: Part III

- +

Dynamic Property Tags

Dynamic property tags are very similar to dynamic content tags, except that they are applied to component properties. The purpose of dynamic property tags is to allow more versatile component property configuration. Note, you are not required to use dynamic property tags because what can be done using dynamic property tags can also be done in PHP code. However, using dynamic property tags bring you much more convenience at accomplishing the same tasks. The basic usage of dynamic property tags is as follows, @@ -16,7 +16,7 @@ where you may enclose DynamicPropertyTag within single or double quotes Like dynamic content tags, we have expression tags, databind tags, parameter tags, asset tags and localization tags. (Note, there is no statement tag here.)

- +

Expression Tags

An expression tag represents a PHP expression that is evaluated when the template is being instantiated. The expression evaluation result is assigned to the corresponding component property. The format of expression tags is as follows, @@ -32,7 +32,7 @@ In the expression, $this refers to the component specified by the compo Note, unlike dynamic content tags, the expressions tags for component properties are evaluated when the components are being constructed, while for the dynamic content tags, the expressions are evaluated when the controls are being rendered.

- +

Databind Tags

Databind tags are similar to expression tags, except that they can only be used with control properties and the expressions are evaluated only when a dataBind() call is invoked on the controls represented by the component tags. In the expression, $this refers to the control itself. Databind tags do not apply to all components. They can only be used for controls. @@ -44,7 +44,7 @@ The format of databind tags is as follows,

- +

Parameter Tags

Parameter tags are used to assign application parameter values to the corresponding component properties. The format of parameter tags is as follows, @@ -54,7 +54,7 @@ Parameter tags are used to assign application parameter values to the correspond Note, application parameters are usually defined in application configurations or page directory configurations. The parameters are evaluated when the template is instantiated.

- +

Asset Tags

Asset tags are used to publish private files and assign the corresponding the URLs to the component properties. For example, if you have an image file that is not Web-accessible and you want to make it visible to end-users, you can use asset tags to publish this file and show the URL to end-users so that they can fetch the published image. -- cgit v1.2.3