[opencms-dev] Re: Why I failed in editing structured content? Cananyone give me a hand
Huang Zhibin
zbhuang2002 at hotmail.com
Sun May 21 14:54:35 CEST 2006
Hi Toni,
Thanks for your hint and sorry for my carelessness.
Now I have another problems. I want to extend this tutorial, that is I
want to display multiple images. To that, I change the wdog_article.xsd
from
<xsd:element name="Image" type="OpenCmsVfsFile" minOccurs="0" />
to
<xsd:element name="Image" type="OpenCmsVfsFile" minOccurs="0"
maxOccurs="5"/>
and in file of article.jsp, I change
<p><img src="<cms:link><cms:contentshow element="Image" /></cms:link>"
></p>
to
<cms:contentloop element="Image">
<p><img src="<cms:link><cms:contentshow element="Image" /></cms:link>"
></p>
</cms:contentloop>
or
<cms:contentcheck ifexists="Image">
<cms:contentloop element="Image">
<p><img src="<cms:link><cms:contentshow element="Image" /></cms:link>"
></p>
</cms:contentloop>
</cms:contentcheck>
and in test dir, I add two images in the html file, but images do not
appear.
I also look through the news demo, found that in page of
list_news_center.jsp, also using contentloop method, but they working not
mine.
I do not know what I neglect, so can you give me suggestions?
Thanks again for your kindness.
Huang
>From: "Toni Pérez" <tp.ocms at gmail.com>
>Reply-To: The OpenCms mailing list <opencms-dev at opencms.org>
>To: "The OpenCms mailing list" <opencms-dev at opencms.org>
>Subject: Re: [opencms-dev] Re: Why I failed in editing structured content?
Cananyone give me a hand
>Date: Sat, 20 May 2006 17:49:18 +0200
>
>Hello, Huang.
>
>You can try to use the following:
>
> <cms:contentload collector="singleFile" param="${opencms.uri}"
>editable="true">
>
>instead of
>
><cms:contentload collector="singleFile" param="${opencms:uri}"
>editable="true">
>
>The diference is in the ${opencms.uri} macro.
>
>I hope that helps you.
>
>_______________________________________________
>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