[opencms-dev] opencms-dev Digest, Vol 153, Issue 2
Atle Enersen
atle.enersen at gmail.com
Tue Jul 8 08:41:45 CEST 2025
Hello, Michael, and thanks for the reply.
I was not aware of the mapping option. I did the change desired:
<Mapping>
<MapTo>property:Title</MapTo>
<UseDefault>true</UseDefault>
</Mapping>
When this was done I published directly and then I used the "Page editor" for the "House"-menu on the site "Enersen" from the Websites screen. It produces this error message:
Kritisk feil: Unable to unmarshal XML content definition schema "opencms://system/modules/org.enersen.core/schemas/enersenarticlenormal.xsd".
(Kritisk feil = Critical error)
When choosing the "Demo site" it works. I get the Mercury frontpage and the editing toolbar.
Ok, then I went on trying to edit one content object of the resource type of the content. In the menu (left hans side click) there is noe dit option. When I do the same on another Resource Types content it works. The external site pruces a 404. Admin interface apart from the described works fine.
Smething now seems in some way regarding the XSD of the Resource type?
Best regards/Vennlig hilsen, Atle Enersen
--
Tel.: +47 48 06 31 71
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/ <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 <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 <https://lists.opencms.org/mailman/listinfo/opencms-dev>
>
>
>
--
Michael Emmerich
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com> -http://www.opencms.org <http://www.opencms.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20250707/bbdcfac1/attachment-0001.htm> <http://lists.opencms.org/pipermail/opencms-dev/attachments/20250707/bbdcfac1/attachment-0001.htm>>
------------------------------
Subject: Digest Footer
_______________________________________________
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 <https://lists.opencms.org/mailman/listinfo/opencms-dev>
------------------------------
End of opencms-dev Digest, Vol 153, Issue 2
*******************************************
More information about the opencms-dev
mailing list