[SPAM] - RE: [opencms-dev] opencms-dev] Xml contentdefinitionproblemwithresource.type.id - Email has different SMTP TO: and MIME TO:f ields in the email addresses
Alexander Kandzior
alex at opencms.org
Fri Feb 18 14:18:41 CET 2005
You can certainly use any property you want.
The new macro mechanism for collector parameters work like this;
${property.SomeName}
will read the property "SomeName".
${property.SomeOtherName}
will read the property "SomeOtherName".
etc.
BTW there's more like
${param.SomeName}
will read the request parameter "SomeName" etc.
You can combine this for the collector parameter any way you like, e.g.
param="${property.SomeOtherName}_${param.SomeName}"
the param Stirng passed to the collector will be combind by the
"SomeOtherName" property + "_" + the Request parameter "SomeName". Note that
this will be resolved _before_ the paraqmeter String is passed to the
collector!
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/>
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Fievet Marc
Sent: Friday, February 18, 2005 1:51 PM
To: 'The OpenCms mailing list'
Subject: RE: [SPAM] - RE: [opencms-dev] opencms-dev] Xml
contentdefinitionproblemwithresource.type.id - Email has different SMTP TO:
and MIME TO:f ields in the email addresses
Hello Alex,
I think the problem came from "xmlcontent-demo" property used in the
example folder with the path of the folder /xmlcontent/.
In the list.jsp you declare "property.xmlcontent-demo" for the parameter. My
question is: Can we declare a new property for own schema like "news" with
the option define or it's mandatory to use yours?
Regards,
MARC
MARC FIEVET
----------------------
Tel. 02 /519 16 59
-----Original Message-----
From: Alexander Kandzior [mailto:alex at opencms.org]
Sent: mardi 15 février 2005 16:22
To: marc.fievet at coditel.net; 'The OpenCms mailing list'
Subject: [SPAM] - RE: [opencms-dev] opencms-dev] Xml
contentdefinitionproblemwithresource.type.id - Email has different SMTP TO:
and MIME TO: fields in the email addresses
I assume you did not configure the JSP detail page correctly.
This is done in the "template-elements" property on the file itself, or on
any parent folder (which will then be valid for all files).
Check out the properties of the "xmlcontent" default demo folder.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/>
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Marc Fievet
Sent: Tuesday, February 15, 2005 3:40 PM
To: The OpenCms mailing list
Subject: RE: [opencms-dev] opencms-dev] Xml content
definitionproblemwithresource.type.id
Hello Alex,
I reinstall opencms and nw it's working! Great.
But now, I have another problem: I can create the news with the xml editor
but there are not display on the browser (404 error message)
my schema:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:element name="Headnews" type="OpenCmsHeadnews"/>
<xsd:complexType name="OpenCmsHeadnews">
<xsd:sequence>
<xsd:element name="Headnew" type="OpenCmsHeadnew" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="OpenCmsHeadnew">
<xsd:sequence>
<xsd:element name="Title" type="OpenCmsString" />
<xsd:element name="Teaser" type="OpenCmsString" maxOccurs="5"/>
<xsd:element name="Text" type="OpenCmsHtml" />
<xsd:element name="Date" type="OpenCmsString" />
<xsd:element name="Release" type="OpenCmsDateTime" />
<xsd:element name="Author" type="OpenCmsString" />
<xsd:element name="Href" type="OpenCmsVfsFile" />
<xsd:element name="Description" type="OpenCmsString" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>
<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Title" mapto="property:Title" />
<mapping element="Release" mapto="attribute:datereleased" />
</mappings>
</xsd:appinfo>
</xsd:annotation>
</xsd:schema>
I create a display list for collecting the news of the folder like this :
list.jsp
---------
cms:contentload collector="${property.collector}"
param="/fr/news/new_${number}.html|77" editable="true">
<b><cms:contentshow element="Date" /> ::: <cms:contentshow element="Author"
/> ::: <cms:contentshow element="Title" /></b></h6>
.....
<div align ="center"><a href="<cms:link><cms:contentshow
element="${opencms.filename}" /></cms:link>">More info</a></div>
</small>
...
The list is displayed but when I click on the "More info link", I receive
the 404 error message..
Exemple: I create new_0001.html on the news folder. The teaser and others
infos are showed on the list but when I click on the link "more info, I
receive the error but uri of the link seems correct.
What's wrong?
Thank you
Regards
MARC
-----Message d'origine-----
De : opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]De la part de Alexander Kandzior
Envoyé : lundi 14 février 2005 15:17
À : 'The OpenCms mailing list'
Objet : RE: [opencms-dev] opencms-dev] Xml content definition
problemwithresource.type.id
I tried everything as you described and for me everything worked. I am
however working on the CVS HEAD version, not 6.0 a 3. Im not sure what kind
of changes we did since the 6a3 release that may releate to this issue.
So either this is some error in the 6a3 release that has been fixed in the
current CVS HEAD, or you have some other configuration issue that is cause
of your problem.
Make sure that in the workplace.xml, you place the "headnews" explorertype
_after_ the "structurecontent" explorer type entry.
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/>
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Fievet Marc
Sent: Monday, February 14, 2005 2:24 PM
To: 'The OpenCms mailing list'
Subject: [opencms-dev] opencms-dev] Xml content definition problem
withresource.type.id
Hello Alex,
Hereby my followings steps:
1. I create a new xml schema located in the /sites/default/fr/news/
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:element name="headnews" type="OpenCmsHeadnews"/>
<xsd:complexType name="OpenCmsHeadnews">
<xsd:sequence>
<xsd:element name="headnew" type="OpenCmsHeadnew" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="OpenCmsHeadnew">
<xsd:sequence>
<xsd:element name="Title" type="OpenCmsString" />
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>
<xsd:annotation>
<xsd:appinfo>
<mappings>
<mapping element="Title" mapto="property:Title" />
</mappings>
</xsd:appinfo>
</xsd:annotation>
</xsd:schema>
2. When I try to create a new headnews display on the dropdown list with the
new number ID (in my case id =77) On the second, screen (for the name of the
resource) I have the following error message: " Maybe you don't have the
needed permissions or this resource already exists.
Please check the entered data or contact your system administrator. "
Details of the error screen:
org.opencms.xml.CmsXmlException: Unmarshalling xml document failed! [Code
400 - Error in xml processing]
Root cause was: org.dom4j.DocumentException: null Nested exception: null
....
>Root cause: >org.dom4j.DocumentException: null Nested exception: null
3. When I tried to create a new file by choosing the "generic XML Content".
this content:
<?xml version="1.0" encoding="UTF-8"?>
<Headnews xmlns:xsi=" <http://www.w3.org/2001/XMLSchema-instance>
http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="opencms://sites/default/fr/news/headnews.xsd"
>
<Headnew language="fr">
<Title><![CDATA[Enter the title of the article here...]]></Title>
</Headnew>
</Headnews>
I have this error :
<errors> <error column="142" line="4">cvc-elt.1: Cannot find the declaration
of element 'Headnews'.</error></errors>
In the opencms-vfs, I declare
<type class="org.opencms.file.types.CmsResourceTypeXmlContent">
<param name="resource.type.id">77</param>
<param name="resource.type.name">headnews</param>
<param name="schema">/sites/default/fr/news/headnews.xsd</param>
</type>
In the opencms-workplace.xml, those entries:
<explorertypes>
<explorertype name="headnews" key="fileicon.headnews" icon="headnews.gif"
reference="xmlcontent">
<newresource page="structurecontent"
uri="newresource_xmlcontent.jsp?newresourcetype=headnews" order="25"/>
</explorertype>
What's wrong?
Extended a existing schema works. I try with the article.xsd present in the
demo by adding some properties but create a new one from scratch is not the
same.
Thank you
Regards,
MARC
Can you post more details regarding this issue?
Best Regards,
Alex.
Alexander Kandzior
Alkacon Software - The OpenCms Experts
http://www.alkacon.com <http://www.alkacon.com/>
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Fievet Marc
Sent: Friday, February 11, 2005 6:01 PM
To: 'The OpenCms mailing list'
Subject: [opencms-dev] Xml content definition problem with resource.type.id
Hello,
I try to create my own schema according the doc transmitted by Alex
In the examples, you suggest to choose id 13
ID 13 is allocated to the Widget demo and when I declare this id in the
vfs.xml, it's the widgetdemo.xsd who parsed my content. Ok, that's correct
according the rules.
When I declare for my schema id 33 or 77, I have this return code " OpenCms
content definition XML schema structure: Invalid list name [Code 400 - Error
in xml processing]"...
example:
<type class="org.opencms.file.types.CmsResourceTypeXmlContent">
<param name="resource.type.id">77</param>
<param name="resource.type.name">headnews</param>
<param
name="schema">/sites/default/fr/news/headnews.xsd</param>
</type>
Is there another file where the id chosen must be declared?
Some restricted id we can't use? What id I can use to declare my schema?
Thanks
Regards,
MARC
____________________________________________________________________________
__
Disclaimer - Winterthur Europe Assurances - Avenue des Arts/Kunstlaan 56 -
1000 Brussels (BEL)
This message may contain confidential, proprietary or legally privileged
information and is intended only for the use of the addressee named above.
No confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient of this message you are hereby notified
that you must not use, disseminate, copy it in any form or take any action
in reliance on it. If you have received this message in error please delete
it and any copies of it and notify Winterthur immediately. This e-mail
message and any attached files have been scanned for the presence of
computer viruses. However, you are advised that you open any attachments at
your own risk. The integrity and security of this message cannot be
guaranteed on the Internet.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050218/4114382d/attachment.htm>
More information about the opencms-dev
mailing list