<CMS: Property>
TagThis label is used to access the "property" of the current file or its parent folder. "properties" are set in the "properties" dialog box in the "Browse" view of opencms.
Label description
Name |
Description |
Required |
Name |
Name of the attribute to be read, such as "title", "cache", and "content-encoding". If the specified attribute is not found, "null" is returned ". |
Yes |
File |
The following "value" specifies the attribute search method: Uri(Default) Search for attributes in the current file requested by the user. Search. UriOrSearch Search for the attribute in the current file requested by the user. If no attribute is found, the attribute of the parent folder of the file is retrieved from the current file level up. Element. Uri Search for attributes in the referenced child element. element. Uri is very useful in the template or other pages that contain multiple child elements. Search. element. Uri Search for attributes in the referenced child element. If no attributes are found, the parent folder of the child element file is located from the beginning of the child element file. {Some-file-Uri} Search for attributes in the specified opencms vfs uri file. |
No |
Instance:<CMS: property name = "title"/> read the "title" attribute of the current file
<CMS: property name = "title" file = "Uri"/> same as above <CMS: property name = "locale" file = "Search"/> read the "locale" attribute of the current file. If not,
In the parent folder.
<CMS: property name = "title" file = "search. uri "/> same as <CMS: property name =" title "file ="/index.html "/>. Read the" title "attribute of the"/index.html "file.