Re: How to display an image without a container
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <OFDFFD091A.F0D43F29-ONC1257145.00287A80-C1257145.00292B96@commaro.com> |
Hello Robert,
you could use <content:fileField/> tag for this purpose.
For example:
<content:declareField name='myImageField' title='Test Image Field'
type='File'/>
<content:fileField name='myImageField' id='myImageField'/>
<jahiaHtml:actionMenu name='myImageField' namePostFix=''
resourceBundle='jahiatemplates.Corporate_portal_templates'
useFieldSet='true'/>
<c:set var="myImage" value="${myImageField.object}" />
<c:if test="${!empty myImage && myImage.image == true}">
<img border="1" name="${myImage.fileFieldTitle}"
src="${myImage.downloadUrl}" alt="${myImage.title}"/>
</c:if>
Kind regards
Sergiy
"Pappas, Robert" <[email protected]>
31.03.2006 22:27
Please respond to
<[email protected]>
To
"'[email protected]'" <[email protected]>
cc
Subject
How to display an image without a container
Is there any way to declare and display an "Image" (a picture) without
using a container?
I've gotten text fields to work without a container, using
<content:textField>, but I can't find any examples in the documentation of
an image that isn't in a container.
Thanks!
Robert
-------------------------
This e-mail and any attachments may contain confidential material for the
sole use of the intended recipient. If you are not the intended recipient,
please be aware that any disclosure, copying, distribution or use of this
e-mail or any attachment is prohibited. If you have received this e-mail
in error, please contact the sender and delete all copies.
Thank you for your cooperation