[opencms-dev] Content of a XML field

Siegfried Puchbauer siegfried.puchbauer at gmail.com
Wed Oct 19 18:21:34 CEST 2005

I think what you need is <cms:contentshow element="XMLFIELDNAME" />... If
this field is a vfsfile (a pic or sth else) you should use
<cms:link><cms:contentshow element="XMLFIELDNAME" /></cms:link> in the src
attribute of your img-tag


<cms:contentload ... >

<img src="<cms:link><cms:contentshow element="theimage"/></cms:link>"
alt="IMAGE" />



2005/10/17, Inmaculada Piquero Buedo <inpibu at hotmail.com>:
> Hello.
> I´ve created a XML file, with its JSP and XSD file.
> I´d like to know which cms tag should I use to get the "content" of an XML
> field.
> As example, in my XSD I have an image, if I use one of the following
> sentences, I get the path, not the image itself:
> <cms:include file="uno.html" element="Image" /> or
> <cms:include property="template-elements" element="Imagen" />
> The string I get in the screen is something like this:
> /sites/default/ … /change_properties.JPG -> The path of the image
> but I´d like to get the picture.
> What sentence could I use?
> I´ve been looking information about the JSP taglib, but I haven´t find
> anything. I´ve read something about "cms:content", but I´m not sure of how
> to use it.
> Thanks in advance.
> Regards.
> _________________________________________________________________
> Dale rienda suelta a tu tiempo libre. Encuentra mil ideas para exprimir tu
> ocio con MSN Entretenimiento. http://entretenimiento.msn.es/
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20051019/82f28c17/attachment.html>

More information about the opencms-dev mailing list