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.