New to opencms6.0 -- properties and structured content)

Source: Internet
Author: User
Unlike other Simple CMS systems, opencms can use properties and structured content (structured content, let's take a look at their advantages. Properties)
Each file and folder has an associated attribute list mapped to key-> value pairs. For example, the title attribute displays the file title, which corresponds to the file name, the template attribute is used to set the template when the page is displayed. There are also some navigation attributes that allow you to decide whether to use dynamic navigation menus. In addition, you can flexibly customize some other attributes. For example, some pages generated by templates are displayed as style 1, while others are only slightly different from those displayed on these pages. Style 2 is displayed. The common practice is to copy a template, save the changes to another version and specify different templates for each page. This practice violates the dry principle (don't repeat yourself, see, the pragmatic programmer). Therefore, it is better to define an attribute, page editors can modify attributes for each file to achieve this goal. Of course, in your "template", different performance needs to be performed based on different values of this attribute. This will increase the complexity of template encoding, so it will not be as leisurely as walking in the park, but it will make you and the editors do something "cool" during management ", make life easier. Structured content)
In opencms, you can define "structured content". The so-called "structured content" is actually data in XML format. The advantage of this type of data is that when editing them, it can display a friendly editing page for editors.
For example, at the top of a page, you may have a set of links, such as the homepage, contact us, and site map, which do not carry out complex encoding in the template, it also prevents your editors from managing them like editing texts, but using structured content. In this way, you can allow the editors to manage these links through a friendly editing form ", and convert the XML data into the corresponding display style in your template, which is a friendly editing form.

 
Thank you for choosing opencms-the first blog in Chinese resources. You are welcome to directly communicate with the author and make progress together. MSN: qianxuncms@hotmail.com, QQ: 9165456.

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.