/
documentation-topic-00004.xml
51 lines (50 loc) · 3.11 KB
/
documentation-topic-00004.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?xml version="1.0" encoding="UTF-8"?>
<AlkaconDocumentationTopicFrames xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="opencms://system/modules/com.alkacon.opencms.documentation/schemas/documentation-topic.xsd">
<AlkaconDocumentationTopicFrame language="en">
<Overview name="Overview0">
<links/>
<content><![CDATA[<p>With OpenCms version 9.5 containers have become much more flexible than before. In particular three features have been added:</p>
<ul>
<li>containers can be nested</li>
<li>containers can have permissions attached</li>
<li>containers can have a param attribute that can be evaluated in formatters</li>
<li>containers can display a default text if they are empty</li>
</ul>
<p>In this demo we explore all of these features. We define a layout content that exposes one, two or three nested containers. Via the layout content, you can also set which users can add or remove contents in the exposed containers.</p>
<p>The example is simple, but somehow artificial. A real use-case where all the new features play together is the grid demo shipped with OpenCms 9.5. In this demo the template is designed as in a modular construction system:</p>
<ul>
<li>A template jsp exposes just one container where only template developers can add contents.</li>
<li>In the template's container, template developers can place template rows that expose new containers (where the template developer can decide who can add contents)</li>
<li>In containers exposed by template rows it is allowed to place layout rows, which themselves make up new containers.</li>
<li>The param attribute is used to forward information from template row containers to layout rows.</li>
</ul>
<p>That everything fits together perfectly in the demo, other features are used as well:</p>
<ul>
<li>Element views are used prevent edit points from overlapping and have a clear focus on what you are editing</li>
<li>Permissions on resource types are used allow adding and editing template rows only for template developers and to allow element authors to add layout rows - but not to add new ones.</li>
</ul>]]></content>
</Overview>
<Teaser name="Teaser0">
<links/>
<content><![CDATA[<p>Design your page layout with nested containers.</p>]]></content>
</Teaser>
<Keywords><![CDATA[demo, container, nested container, example, permissions]]></Keywords>
<InterestingFor><![CDATA[c_developer]]></InterestingFor>
<RelatedLinks>
<Link>
<URI>
<link internal="true" type="WEAK">
<target><![CDATA[/sites/default/opencms-documentation/content-in-opencms/formatters-and-their-configuration/nested-containers/]]></target>
<uuid>3e5f51a4-334d-11e4-ae50-d144f6bb3566</uuid>
</link>
</URI>
<LinkText><![CDATA[More infos on nested containers (including another simple use case).]]></LinkText>
</Link>
</RelatedLinks>
<NewInVersion><![CDATA[9.5]]></NewInVersion>
<NewInDocuVersion><![CDATA[9.5]]></NewInDocuVersion>
<StatusMetaData>
<Todos/>
</StatusMetaData>
</AlkaconDocumentationTopicFrame>
</AlkaconDocumentationTopicFrames>