[opencms-dev] structured content and widgets
davidenewsletter at libero.it
davidenewsletter at libero.it
Tue Nov 7 10:29:54 CET 2006
There is nothing wrong in the xsd.
The problem was due to the fact I had 2 xsd with root nodes with the same name inside the same namespace....
My bad....
HTH someone else.
Davide
> Hi all,
> I'm ecountering problems with structured content pages when trying to edit them. Precisely it's a problem of rendering of widgets.
>
> I've got this xsd
>
>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
>
> <xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
> <xsd:element name="Comunications" type="OpenCmsComunications"/>
>
> <xsd:complexType name="OpenCmsComunications">
> <xsd:sequence>
> <xsd:element name="Comunication" type="OpenCmsComunication" minOccurs="0" maxOccurs="unbounded"/>
> </xsd:sequence>
> </xsd:complexType>
>
> <xsd:complexType name="OpenCmsComunication">
> <xsd:sequence>
> <xsd:element name="Data" type="OpenCmsDateTime" minOccurs="1"/>
> <xsd:element name="Titolo" type="OpenCmsString" />
> <xsd:element name="Abstract" type="OpenCmsHtml" />
> <xsd:element name="Autori" type="OpenCmsString"/>
> <xsd:element name="Documento" type="OpenCmsString" minOccurs="1"/>
> <xsd:element name="Link" type="OpenCmsString" />
> </xsd:sequence>
> <xsd:attribute name="language" type="OpenCmsLocale" use="optional"/>
> </xsd:complexType>
>
> <xsd:annotation>
> <xsd:appinfo>
> <mappings>
> <mapping element="Data" mapto="property:collector.date" />
> </mappings>
> <defaults>
> <default element="Data" value="${currenttime}"/>
> </defaults>
>
> <layouts>
> <layout element="Documento" widget="DownloadGalleryWidget" />
> <layout element="Link" widget="LinkGalleryWidget" />
> </layouts>
>
> </xsd:appinfo>
> </xsd:annotation>
> </xsd:schema>
>
>
>
> Every time I try to modify the page through the workplace the editor is displayed correctly with the right widgets for the nodes Documento(DownloadGalleryWidget) and Link (LinkGalleryWidget).
>
> When I try to access the editor via the direct access the same nodes Documento and Link are displayed like simple Strings....
>
> Another thing... if I include a xsd in another xsd and in the first xsd are specified nodes to be displayed like DownloadGalleryWidget or similar, everything works fine.
>
> To make the workplace work in the right way I have to restart tomcat. But the strange behaviour occurs every time I modify the content of a page using the direct edit.
>
> There is another colleaugue of mine that has a running instance of OpenCms and he's never encountered this problem....
>
> What am i doing wrong?
>
> Please, help me!!!
>
>
> ------------------------------------------------------
> Mutuo da 200.000? Tassi ridotti:euribor +0.70%. Solo per richieste online. www.mutuionline.it
> http://click.libero.it/mutuionline6nov
>
>
>
> _______________________________________________
> 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
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list