Opencms JSP tag description-CMS: Property tag

Source: Internet
Author: User

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

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.