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="" 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

 

Reply via email to