From ccdb91a35602377fe389c6c5b0945478929e0eca Mon Sep 17 00:00:00 2001 From: wei <> Date: Wed, 28 Dec 2005 22:41:20 +0000 Subject: Adding TTextHighlighter for quickstart docs. --- .../protected/pages/Configurations/Templates3.page | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 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 7ab55281..ae496553 100644 --- a/demos/quickstart/protected/pages/Configurations/Templates3.page +++ b/demos/quickstart/protected/pages/Configurations/Templates3.page @@ -5,11 +5,11 @@

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, -

+
 <com:ComponentType PropertyName=DynamicPropertyTag ...>
 body content
 </com:ComponentType>
-
+ where you may enclose DynamicPropertyTag within single or double quotes for better readability.

@@ -20,13 +20,13 @@ We now introduce the available types of dynamic property tags that may be used i

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, -

+
 <%= PhpExpression %>
-
+ In the expression, $this refers to the component specified by the component tag. The following example specifies a TLabel control whose Text property is initialized as the current page title when the TLabel control is being constructed, -
+
 <com:TLabel Text=<%= $this->Page->Title %> />
-
+

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. @@ -39,18 +39,18 @@ Databind tags are similar to expression tags, except that the expressions are ev

The format of databind tags is as follows, -

+
 <%# PhpExpression %>
-
+

Parameter Tags

Parameter tags are used to assign application parameter values to the corresponding component properties. The format of parameter tags is as follows, -

+
 <%$ ParameterName %>
-
+ Note, application parameters are usually defined in application configurations or page directory configurations. The parameters are evaluated when the template is instantiated.

@@ -61,9 +61,9 @@ Asset tags are used to publish private files and assign the corresponding the UR

The format of asset tags is as follows, -

+
 <%~ LocalFileName %>
-
+ where LocalFileName refers to a file path that is relative to the directory containing the current template file. The file path can be a single file or a directory. If the latter, the content in the whole directory will be made accessible by end-users.

-- cgit v1.2.3