This article describes the TAL functions of the following attribute types:
- Text input
- Single selection and multiple selection
- Boolean
- Link
- Link list
- Picture
- Picture list
- Date
- Colour
- Container
- Container List
- Url
- Code Macro
- Lists of values
Access to attributes
You can access the attributes in both the article and the container with getAttributeByName.
From an article template:
THIS/getAttributeByName/<name>
From a container:
<container>/getAttributeByName/<name>
See also:
General functions
All attribute types support a number of functions:
getName
Returns the internal name of the current attribute.
Syntax
<attributes>/getName
Return value
Use
<div tal:content="THIS/getAttributeByName/HEADLINE/getName"> </div>
<div>HEADLINE
See also:
hasValue
Indicates whether a value has been set for the current attribute.
Syntax
<attributes>/hasValue
Return value
Boolean
Use
<div>heading set/div>
<div>heading is empty div>
See also:
getValue
Returns the text representation of the current attribute.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="THIS/getAttributeByName/HEADLINE/getValue"> </div>
<div>heading article 1</div>
See also:
getValueRaw
Returns the value of the current attribute.
Syntax
<attributes>/getValueRaw
Return value
depending on the attribute type
Use
<div tal:content="THIS/getAttributeByName/HEADLINE/getValueRaw"> </div>
<div>value/div>
See also:
Text Input
There are four types of text entry fields:
- single-line entry
- multiline input (text)
- multiline input (formatted)
- multi-line input (HTML editor)
They all offer a number of functions for working with texts. These functions can also be combined. For example:
<div tal:content="THIS/getAttributeByName/SINGLE INPUT/getValue/toLower/cut/10"> </div>
getValue
Returns the value of the current attribute.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="THIS/getAttributeByName/SINGLINE INPUT/getValue"> </div> <div tal:content=
"structure quotenltobr: THIS/getAttributeByName/MULTI-LINE INPUT/getValue"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValue"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValue"> </div>
<div>This is a single-line entry</div> <div>This is
the first line of a multi-line entry<br>This is the second line of a multi-line entry</div> <div>This is the first line
of a multi-line, <b>formatted</b> entry<br>this is the second line of a multi-line, <b>formatted</b> input</div> <div> this is the
first line of a multi-line, <b>formatted</b> input in the HTML editor</b> input<br> this is the second line of a multi-line, <b>formatted</b> input in the HTML editor</div>
See also:
getValueRaw
Returns the value of the current attribute.
Syntax
<attributes>/getValueRaw
Return value
Use
<div tal:content="THIS/getAttributeByName/SINGLINE INPUT/getValueRaw"> </div> <div tal:content=
"structure quotenltobr: THIS/getAttributeByName/MULLINE INPUT/getValueRaw"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValueRaw"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValueRaw"> </div>
<div>This is a single-line entry</div> <div>This is
the first line of a multi-line entry<br>This is the second line of a multi-line entry</div> <div>This is the first line
of a multi-line, <b>formatted</b> entry<br>this is the second line of a multi-line, <b>formatted</b> input</div> <div> this is the
first line of a multi-line, <b>formatted</b> input in the HTML editor</b> input<br> this is the second line of a multi-line, <b>formatted</b> input in the HTML editor</div>
See also:
toLower
Returns the text of the current attribute in lower case.
Syntax
<attributes>/toLower
Return value
Use
<div tal:content="THIS/getAttributeByName/SINGLINE INPUT/getValue/toLower"> </div> <div tal:content=
"structure quotenltobr: THIS/getAttributeByName/MULLINE INPUT/getValue/toLower"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValue/toLower"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValue/toLower"> </div>
<div>this is a single-line input </div> <div>this is
the first line of a multi-line input <br>this is the second line of a multi-line input </div> <div>this is the first line
of a multi-line, <b>formatted </b> inputthis is the second line of a multiline, <b>formatted</b> input</div> <div> this is the
first line of a multiline, <b> formatted, <div> input
formatted in html editor</b> input<br>this is the second line of a multiline, <b> formatted in html editor</b> input</div>
See also:
toUpper
Returns the text of the current attribute in upper case.
Syntax
<attributes>/toUpper
Return value
Use
<div tal:content="THIS/getAttributeByName/SINGLINE INPUT/getValue/toUpper"> </div> <div tal:content=
"structure quotenltobr: THIS/getAttributeByName/MULLINE INPUT/getValue/toUpper"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValue/toUpper"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValue/toUpper"> </div>
<div>this is a one-line entry div> div> div> this is
the first line of a multi-line entry br>THIS IS THE SECOND LINE OF A MULTI-LINE INPUT</div> <div> THIS
IS THE FIRST LINE OF A MULTI-LINE, <b>FORMATED</b> INPUT<br>THIS IS THE SECOND LINE OF A MULTI-LINE, <b>FORMATED</b> INPUT</div> <div> THIS IS THE
FIRST LINE OF A MULTI-LINE, <b>FORMATED IN HTML EDITOR</b> INPUT<br> THIS IS THE SECOND LINE OF A MULTI-LINE, <b> FORMATED IN HTML EDITOR</b> INPUT</div>
See also:
stripHtml
Returns the text of the current attribute but without the HTML markup that may be contained.
Syntax
<attributes>/stripHtml
Return value
Use
<div tal:content="THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValue/stripHtml"> </div> <div tal:content=
"THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValue/stripHtml"> </div>
<div>This is the first line of a multi-line, formatted input this is the second line of a multi-line, formatted input </div> <div>This is
the first line of a multi-line, formatted input in the HTML editor this is the second line of a multi-line, formatted input in the HTML editor
See also:
countWords
Returns the number of words in the text of the current attribute.
Syntax
<attributes>/countWords
Return value
Use
<div tal:content="THIS/getAttributeByName/SINGLINE INPUT/getValue/countWords"> </div> <div tal:content=
"THIS/getAttributeByName/MULLINE INPUT/getValue/countWords"> </div> <div tal:
content="THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValue/countWords"> </div> <div tal:
content="THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValue/countWords"> </div>
<div>5 div>16 div>16
div>18 div>22 div>22 div>
See also:
length
Returns the length of the text for the current attribute. The pure text length without HTML markup is counted.
Syntax
<attributes>/length
Return value
Use
<div tal:content="THIS/getAttributeByName/SINGLINE INPUT/getValue/length"> </div> <div tal:content=
"THIS/getAttributeByName/MULLINE INPUT/getValue/length"> </div> <div tal:
content="THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValue/length"> </div> <div tal:
content="THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValue/length"> </div>
<div>31/div> div> div> 102/div> div> 102/div>
div> 131/div> div> 161/div> div> 161
See also:
cut
Shortens the text of the attribute to the specified length and appends "...". If the text is the same length or shorter, it is returned unchanged.
Syntax
<attributes>/cut/<length>
Parameters
length = number of characters but which should be cut off
Return value
Use
<div tal:content="THIS/getAttributeByName/SINGLINE INPUT/getValue/cut/30"> </div> <div tal:content=
"structure quotenltobr: THIS/getAttributeByName/MULLINE INPUT/getValue/cut/30"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValue/cut/30"> </div> <div tal:
content="structure THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValue/cut/30"> </div>
<This is
the first line of a... </div> <div> This is the first line of a... </div> <div> This is the first line of a...
</div> <div> This is the first line of a...
</div>
See also:
md5
Returns the MD5 hash for the text of the current attribute.
Syntax
<attributes>/md5
Return value
Use
<div tal:content="THIS/getAttributeByName/SINGLINE INPUT/getValue/md5"> </div> <div tal:content=
"THIS/getAttributeByName/MULLINE INPUT/getValue/md5"> </div> <div tal:
content="THIS/getAttributeByName/MULTI-LINE INPUTFORMATED/getValue/md5"> </div> <div tal:
content="THIS/getAttributeByName/MULTI-LINE INPUTMLEDITOR/getValue/md5"> </div>
<div>99bb81cad7878e3bf5db50ce8c80ebd6</div>
<div>9b4b80c972276ae8cd27723266094f44</div>
<div>c27b8c9ab0cc0b6b9da69ec98901087d</div>
<div>b5c08aac6c3628afa007db42aae189bb</div>
See also:
separateByComma
Separates the text of the current attribute with commas and wraps and then returns it as a multi-column list.
Syntax
<attributes>/getValue/separateByComma
Return value
columned list of strings
Use
<table> <tbody>
<tr tal:
repeat="row THIS/getAttributeByName/COMMASEPARIERTABLE/getValue/separateByComma"> <td tal:
content="value" tal:repeat="value row"> </td> </tr> </tbody> </table>
<table> <tbody>
<tr> <td>value
A1</td> <td>value
B1</td> <td>value C1</td> </tr> <tr> <td>value A2</td>
Value B2</td><td>Value C2</td> </tr> <tr> <td>Value
A3</td><td>Value
B3</td><td>Value C3</td> </tr> </tbody> </table>
See also:
separateByTab
Separates the text of the current attribute with tabs and wraps and then returns it as a multi-column list.
Syntax
<attributes>/getValue/separateByTab
Return value
columned list of strings
Use
<table> <tbody>
<tr tal:
repeat="row THIS/getAttributeByName/COMMASEPARIERTABLE/getValue/separateByTab"> <td tal:
content="value" tal:repeat="value row"> </td> </tr> </tbody> </table>
<table> <tbody>
<tr> <td>value
A1</td> <td>value
B1</td> <td>value C1</td> </tr> <tr> <td>value A2</td>
Value B2</td><td>Value C2</td> </tr> <tr> <td>Value
A3</td><td>Value
B3</td><td>Value C3</td> </tr> </tbody> </table>
See also:
Single selection and multiple selection
An attribute of the type "single selection" or "multiple selection" provides functions for accessing the selected values.
getValue
Returns the labels of the selected options of the current attribute.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="THIS/getAttributeByName/SimpleEKTION/getValue"> </div> <div tal:content=
"structure THIS/getAttributeByName/MultipleEKTION/getValue"> </div>
<div>option 1/div> div> div> option
1br />option 3/div>
See also:
getValueRaw
Returns the selected options of the current attribute.
Syntax
<attributes>/getValueRaw
Return value
List of option objects
Use
<div tal:content="THIS/getAttributeByName/SimpleEKTION/getValueRaw"> </div> <div tal:repeat=
"option THIS/getAttributeByName/MultipleEKTION/getValueRaw" tal:content="option"> </div>
<div>option 1 div> div> div> div> option
1 div> div> div> div> option 3 div> div> div> option 3 div>
See also:
hasOptions
Specifies whether the current attribute has options.
Syntax
<attributes>/hasOptions
Return value
Boolean
Use
<div>value can be selected</div> <div>values
can be selected</div>
<div>no value available for selection</div> <div>no
values available for selection</div>
See also:
hasAnyOptionSet
Specifies whether at least one option is set in the current attribute.
Syntax
<attributes>/hasAnyOptionSet
Return value
Boolean
Use
<div>value selected/div> div> div> values
selected/div>
<div>no value selected</div> <div>no
values selected</div>
See also:
getOptionByName
Returns a searched option from the current selection.
Syntax
<attributes>/getOptionByName/<id>
Parameters
id = ID of the searched option
Return value
Use
<div tal:content="THIS/getAttributeByName/SimpleEction/getOptionByName/679201_OPTION1/getValue"> </div> <div tal:
content="THIS/getAttributeByName/MultiSCHSELEKTION/getOptionByName/679204_OPTION1/getValue"> </div>
<div>option 1/div> div> div> div>option
1/div>
See also:
Option object
The option object is the return value of the function "getOptionByName" of attributes of the type "single selection" or "multiple selection".
hasValue
Indicates whether the option is selected.
Syntax
<optionObject>/hasValue
Return value
Boolean
Use
<div>option selected</div> <div>option
selected</div>
<div>option not selected/div> div> div> option
not selected/div>
See also:
getValue
Returns the label of the option, if it is set.
Syntax
<optionObject>/getValue
Return value
Use
<div tal:content="THIS/getAttributeByName/SimpleEction/getOptionByName/679201_OPTION1/getValue"> </div> <div tal:
content="THIS/getAttributeByName/SimpleEKTION/getOptionByName/679204_OPTION1/getValue"> </div>
<div>option 1/div> div> div> div>option
1/div>
See also:
Boolean
An attribute of type "Boolean" does not provide any additional functions.
getValue
Returns the value of the current attribute.
Syntax
<attributes>/getValue
Return value
Boolean
Use
<div tal:content="THIS/getAttributeByName/BOOLEAN/getValue"> </div>
<div>1/div>
See also:
getValueRaw
Returns the value of the current attribute.
Syntax
<attributes>/getValueRaw
Return value
Boolean
Use
<div tal:content="THIS/getAttributeByName/BOOLEAN/getValueRaw"> </div>
<div>1/div>
See also:
Link
A list of links is the return value of the function "getValueRaw" of attributes of the type "link list".
getText
Returns the link text of the current link object.
Syntax
<link>/getText
Return value
Use
<a tal:repeat="link THIS/getAttributeByName/LINKLIST/getValueRaw" href="#" tal:content="link/getText" tal:attributes="href link/getUrl"> </a>
<a href="https://scnem.com/goto.php?l=nnz6ag.21bjtgk,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 1</a> <a href=
"https://scnem.com/goto.php?l=nnz6ah.132l630,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 2</a> <a href=
"https://scnem.com/goto.php?l=nnz6ai.1ojn4br,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 3</a>
See also:
getLink, getUrl
Returns the link target of the current link object.
Syntax
<link>/getLink<link>/getUrl
Return value
Use
<a tal:repeat="link THIS/getAttributeByName/LINKLIST/getValueRaw" href="#" tal:content="link/getText" tal:attributes="href link/getUrl"> </a>
<a href="https://scnem.com/goto.php?l=nnz6ag.21bjtgk,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 1</a> <a href=
"https://scnem.com/goto.php?l=nnz6ah.132l630,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 2</a> <a href=
"https://scnem.com/goto.php?l=nnz6ai.1ojn4br,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 3</a>
See also:
getTrackLink
Returns an individually trackable link for the current link object.
Syntax
<link>/getTrackLink
Return value
Use
<a tal:repeat="link THIS/getAttributeByName/LINKLIST/getValueRaw" href="#" tal:content="link/getText" tal:attributes="href link/getTrackLink"> </a>
<a href="https://scnem.com/goto.php?l=nnz6ag.21bjtgk,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 1</a> <a href=
"https://scnem.com/goto.php?l=nnz6ah.132l630,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 2</a> <a href=
"https://scnem.com/goto.php?l=nnz6ai.1ojn4br,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 3</a>
See also:
Link list
An attribute of the type "link list" contains a list of links, which in turn can be accessed with various functions.
getValue
Returns the source code for a link list.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="structure THIS/getAttributeByName/LINKLIST/getValue"> </div>
<ol class="linklist"> <li><a
href="https://scnem.com/goto.php?l=npuh7l.2r4srjd,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dskt3.14tt7jk">Link 1</a></li> <li><a href=
"https://scnem.com/goto.php?l=npuh7m.lpc9eo,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dskt3.14tt7jk">Link 2</a></li> <li><a href="https://scnem.com/goto.php?l=npuh7n.2
c7ajlo,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dskt3.14tt7jk">Link 3</a></li> </ol>
See also:
getValueRaw
Returns a list of link objects.
Syntax
<attributes>/getValueRaw
Return value
List of link objects
Use
<a tal:repeat="link THIS/getAttributeByName/LINKLIST/getValueRaw" href="#" tal:content="link/getText" tal:attributes="href link/getUrl"> </a>
<a href="https://scnem.com/goto.php?l=nnz6ag.21bjtgk,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 1</a> <a href=
"https://scnem.com/goto.php?l=nnz6ah.132l630,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 2</a> <a href=
"https://scnem.com/goto.php?l=nnz6ai.1ojn4br,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62">Link 3</a>
See also:
Picture
An attribute of the type "Image" does not provide any additional functions.
getValue
Returns the image url for the current image object.
Syntax
<image>/getValue
Return value
Use
<img src="#" tal:attributes="src THIS/getAttributeByName/Picture/getValue" alt="" />
<img src="https://scnem.com/art_resource.php?sid=dsn68.2pf3dkp" alt="" />
See also:
getValueRaw
Returns the ID of the current image object.
Syntax
<image>/getValueRaw
Return value
Use
<div tal:content="THIS/getAttributeByName/Picture/getValueRaw"> </div>
<div>23171408
See also:
Picture list
An attribute of type "Image list" contains a list of images.
getValue
Returns the source code for an image list.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="structure THIS/getAttributeByName/ImAGE LIST/getValue"> </div>
<div> <span> <img
src="https://scnem.com/art_resource.php?sid=dsn68.2pf3dkp"></span> <span> <img src=
"https://scnem.com/art_resource.php?sid=dsokp.2ag693n"></span> </div>
See also:
getValueRaw
Returns a list of picture urls.
Syntax
<attributes>/getValueRaw
Return value
List of Strings
Use
<img src="#" tal:repeat="image THIS/getAttributeByName/IMAGE LIST/getValueRaw" tal:attributes="src image" alt="" />
<img src="https://scnem.com/art_resource.php?sid=dsn68.2pf3dkp" alt="" /> <img src=
"https://scnem.com/art_resource.php?sid=dsokp.2ag693n" alt="" />
See also:
Date
An attribute of the type "Date" does not provide any additional functions.
Note
Since the system works globally and thus in all time zones, all time data are, unless otherwise specified, in the Coordinated Universal Time / UTC(see Wikipedia)
getValue
Returns the date from the current attribute.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="THIS/getAttributeByName/DATUM/getValue"> </div>
<div>12.10.2019</div>
See also:
getValueRaw
Returns the Unix time stamp of the current attribute.
Syntax
<attributes>/getValueRaw
Return value
Timespamp
Use
<div tal:content="THIS/getAttributeByName/DATUM/getValue"> </div>
<div>23171408
See also:
Colour
An attribute of type "color" provides a number of functions for working with colors.
getValue
Returns the color as HEX value, for example for use in CSS and HTML.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="THIS/getAttributeByName/Color/getValue"> </div>
<div>#64BB7/div>
See also:
getValueRaw
Returns the color in the RGB representation.
Syntax
<attributes>/getValueRaw
Return value
Use
<div tal:content="THIS/getAttributeByName/Color/getValue"> </div>
<div>rgb(100, 187, 183)div>
See also:
Container
An attribute of the type "Container" contains a container object that provides various functions.
getValue
Returns the container object of the current attribute.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="THIS/getAttributeByName/CONTAINER/getValue/getAttributeByName/READMORE"> </div>
<div>read more div>
See also:
getValueRaw
Returns the ID of the container object from the current attribute.
Syntax
<attributes>/getValueRaw
Return value
Use
<div tal:content="THIS/getAttributeByName/CONTAINER/getValueRaw"> </div>
<div>23261486/div>
See also:
Container List
An attribute of the type "container list" contains a list of container objects which provide different functions.
getValue
Returns a list of containers.
Syntax
<attributes>/getValue
Return value
Use
<div tal:repeat="container THIS/getAttributeByName/CONTAINERLIST1/getValue" tal:content="container/getAttributeByName/READMORE"> </div>
<div>read more div> div> div> div> read
more div> div>
See also:
getValueRaw
Returns a list of containers.
Syntax
<attributes>/getValueRaw
Return value
Use
<div tal:repeat="container THIS/getAttributeByName/CONTAINERLIST1/getValueRaw" tal:content="container/getAttributeByName/READMORE"> </div>
<div>read more div> div> div> div> read
more div> div>
See also:
Url
An attribute of type "URL" does not provide any additional functions.
getValue
Returns the tracking link to the link of the current attribute.
Syntax
<attributes>/getValue
Return value
Use
<a href="#" tal:attributs="href THIS/getAttributeByName/URL/getValue"> </a>
<a href="https://scnem.com/goto.php?l=npuh7o.9qpina,u=1321445498c9f3845e55ba073bc67b96,n=dskt3.14tt7jk,art_id=dsz0k.258j62"> </a>
See also:
Code Macro
An attribute of the type "Code Macro" is only made available in container objects. It corresponds to a formatted text field that can itself contain TAL commands. This is not the case with other container attributes.
In "Code-Macro" fields the TAL selector "SELF" is available in addition to "THIS". "SELF" selects the container that contains the "Code-Macro" field while "THIS" selects the element in which the container is loaded (e.g.: eMailing-Templage).
getValue
Returns the content of the current attribute.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="THIS/getValue/getAttributeByName/CODEMACRO/getValue"> </div>
<div>content from the field Code-Macro.</div>
See also:
getValueRaw
Returns the content of the current attribute.
Syntax
<attributes>/getValueRaw
Return value
Use
<div tal:content="<container>/getAttributeByName/CODEMACRO/getValueRaw"> </div>
<div>content from the field Code-Macro.</div>
See also:
List of values
An attribute of the type "value list" contains a list of value pairs, which themselves provide functions for access.
getValue
Returns the source code for a standard display of the value list.
Syntax
<attributes>/getValue
Return value
Use
<div tal:content="structure THIS/getAttributeByName/LIST OF VALUES/getValue"> </div>
<div> <div
class="key_value_list"> <span
class="key">Designation 1</span><span class="value">Value 1</span> </div> <div class="key_value_list
"> <span
class="key">Designation 2<
/span><span class="value">value 2</span> </div> <div
class="key_value_list
"><span class="key">designation 3</span><span class="value">value 3</span> </div> </div>
See also:
getValueRaw
Returns a list of value pairs.
Syntax
<attributes>/getValueRaw
Return value
List of value pairs
Use
<div tal:repeat="value THIS/getAttributeByName/LIST OF VALUES/getValueRaw" tal:content="value/getValue"> </div>
<div>value 1/div> div> div> div>value 2/div> div>
div>value 3/div>
See also:
Value objects
The value object is an entry in a "value list".
getValue
Returns the value of the current value object.
Syntax
<valueObject>/getValue
Return value
Use
<div tal:content="value/getValue" tal:repeat="value THIS/getAttributeByName/LIST OF VALUES/getValueRaw"> </div>
<div>value 1/div> div> div> div>value 2/div> div>
div>value 3/div>
See also:
getKey
Returns the name of the current value object.
Syntax
<valueObject>/getKey
Return value
Use
<div tal:content="value/getKey" tal:repeat="value THIS/getAttributeByName/LIST OF VALUES/getValueRaw"> </div>
<div>designation 1/div> div> div>-designation
2/div> div> div>-div>-designation 3/div>