[opencms-dev] Missing title
Michael Emmerich
m.emmerich at alkacon.com
Mon Jul 7 11:07:49 CEST 2025
Atle,
have you add a mapping in your XSD so that one of the fields of your
content is mapped to the "Title" property?
If you have a Field in your XSD like this:
[...]
<xsd:element name="Title" type="OpenCmsString" />
[...]
you must add add a mapping in the annotations part of the XSD:
[...]
<xsd:annotation>
<xsd:appinfo>
[...]
<FieldSettings>
<Setting>
<PropertyName>*Title*</PropertyName>
<Mapping>
<MapTo>*property:Title*</MapTo>
</Mapping>
</Setting>
[...]
</FieldSettings>
</xsd:appinfo>
[...]
More about the FieldSettings are explained here:
https://documentation.opencms.org/opencms-documentation/template-development/field-settings-reference/
And a bit more on mappings in special here:
https://documentation.opencms.org/opencms-documentation/template-development/content-type-definition-with-xml-schema/mappings-and-default-values/index.html
Btw: The mailing list blocks postings with bigger attachment and those
posts have to be released manually, so its better not to add bigger
screenshots.
Kind regards,
Michael
Am 05.07.25 um 09:07 schrieb Atle Enersen via opencms-dev:
>
> Hello.
>
> As the attached image show, the row Title is missing content in the
> table. The title who is there is set by med manually from the Menu ->
> Properties. Apart from this, the Resource Type is working properly.
>
> In the default site (Mercury) it is working fine.
>
> Please advice, in advance thanks :-)
>
> Vennlig hilsen/best regards, Atle Enersen
>
> --
>
> Tel.: +47 48 06 31 71
>
>
> _______________________________________________
> 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
>
>
>
--
Michael Emmerich
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com -http://www.opencms.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20250707/bbdcfac1/attachment.htm>
More information about the opencms-dev
mailing list