<we:var type="property>
Since version: - | Requires endtag: no
Description
This tag is used to display the properties of the actual webEdition document.
Attributes
type
Default value: - | since version: - | required: yes
Allowed values:
- property
name
Default value: - | since version: - | required: yes
Set this attribute to the field name whose content is to be displayed.
doc
Default value: - | since version: - | required: no
Setting this attribute to "self" will cause webEdition to refer to the current webEdition document. If the document was included using <we:include>, it refers to the included document. Set this attribute to "top" to refer to the main current webEdition document, even if the tag is in an included document.
Allowed values:
- self
- top
htmlspecialchars
Default value: false | since version: - | required: no
Using htmlspecialchars="true" will change all special chars into HTML entities ("&" is transformed to "&"). If htmspecialchars is "false" or not set, all special chars remain unchanged.
Allowed values:
- true
- false
cachelifetime
Default value: 0 | since version: 4.2.0.0 | required: no
With this attribute you define the validity of the Cache in seconds for this we:Tag. This attribute is used only if cache type defined in the template is we:Tag Cache or Cache is disabled.
Syntax
<we:var type="property" name="attribute" [doc="self|top"] [htmlspecialchars="true|false"] [cachelifetime="attribute"] />
Examples
Example #1 - ID of template from webEdition document
<we:var type="property" name="TemplateID"/>
Example #2 - Path of temaplte from webEdition document
<we:var type="property" name="TemplatePath"/>
Example #3 - ID of webEdition document
<we:var type="property" name="ID"/>
Example #4 - ID of the folder from the webEdition document
<we:var type="property" name="ParentID"/>
Example #5 - Path of webEdition document
<we:var type="property" name="Path"/>
Example #6 - Path of the folder from the webEdition document
<we:var type="property" name="ParentPath"/>
Example #7 - static or dynamic
<we:var type="property" name="IsDynamic"/> <!-- 0 = static 1 = dynamic -->
Example #8 - not searchable or searchable
<we:var type="property" name="IsSearchable"/> <!-- 0 = not searchable 1 = searchable -->
Example #9 - File name with file extension of webEdition document
<we:var type="property" name="Text"/>
Example #10 - File name without file extension of webEdition document
<we:var type="property" name="Filename"/>
Example #11 - File extension of webEdition document
<we:var type="property" name="Extension"/>
Example #12 - Document type (ID) of webEdition document (since webEdition 2.0)
<we:var type="property" name="DocType"/>
Example #13 - ID(s) of categorie(s) from webEdition document
<we:var type="property" name="Category"/>
Example #14 - Creation date of webEdition document
<we:var type="property" name="CreationDate"/>
Example #15 - Publish date of webedition document
<we:var type="property" name="Published"/>
Example #16 - Date of last modification from webEdition document
<we:var type="property" name="ModDate"/>
Example #17 - ID of creator of webEdition document
<we:var type="property" name="CreatorID"/>
Example #18 - ID of user who has done the last modification
<we:var type="property" name="ModifierID"/>