[opencms-dev] Nested xsd elemnts
Jochen Graf
j.graf at alkacon.com
Wed Nov 30 16:10:30 CET 2022
Hi Laura,
nested contents can be used to create groups of content fields that can
be reused, this is right. A typical example is the nested link content
in the Mercury template [1] which is reused by many other Mercury
contents such as link sequence [2], organization [3], and so on.
Model groups are one level higher. This would be the combination of a
linksequence, an organization, and a section, for example.
Nested contents are not restricted to XSD choice elements, you can use
them as part of an XSD sequence as well, see the link sequence [2] as an
example.
Concerning "nested folders do not show up": this is surely a problem
with your formatter. The OpenCms log file should provide more information.
Hope this helps
Jochen
[1]
https://github.com/alkacon/mercury-template/blob/master/alkacon.mercury.template/resources/system/modules/alkacon.mercury.template/schemas/nested/link.xsd
[2]
https://github.com/alkacon/mercury-template/blob/master/alkacon.mercury.template/resources/system/modules/alkacon.mercury.template/schemas/linksequence.xsd
[3]
https://github.com/alkacon/mercury-template/blob/master/alkacon.mercury.template/resources/system/modules/alkacon.mercury.template/schemas/organization.xsd
Am 22.11.22 um 14:46 schrieb Laura S. via opencms-dev:
> Hello,
>
> Following the opencms documentation for choice elements, I created two xsd nested folders and I included them in the main schema.xsd. Then the jsp formatter is build as the jsp example ( com.alako .opencms.v8.infobox).
>
> The xml result it’s working and editable but when I insert it on my webpage, the content within the nested folders doesn’t show up.
>
> I want to know if this is the right way to create groups of content like a label and text - which you can reuse as many times as you want. And if it is, how can I fix that error?
>
> Or should I use “ group models” ?
>
> Than you.
>
> Laura.
>
>
> Enviado desde mi iPhone
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
--
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
More information about the opencms-dev
mailing list