RE: <content:fileField>

"Marc Cardle" <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <[email protected]>
Hi Lorenzo,

 

The example cited in the doc works fine in
corporate_portal_templates\include\main_content.jsp. Have a look at this
example and see if you follow the same syntax. Get back to us if that
doesn't help.

 

Regards

 

Marc

 

 

  _____  

From: Lorenzo Patocchi [mailto:[email protected]] 
Sent: 01 July 2005 17:10
To: [email protected]
Subject: <content:fileField>

 

Hello,
in the online-doc (http://www.jahia.org/taglibdoc/) i found this example
about content:fileField
<http://www.jahia.org/taglibdoc/content/fileField.html>  

<content:declareField name='image' title='Image' type='File'/>
...
<content:fileField name="image" id="imageField"/> 
<logic:present name="imageField"> 
  <img src="<bean:write name='imageField' property='downloadUrl'/>"/> 
  <img src="<bean:write name='imageField' property='formatedSize'/>"/> 
</logic:present> 


But in jahia 4.10 I had to use this syntax to get out downloadURL and
formattedSize

<bean:write name="imageField" property="jahiaField.object.downloadUrl" />
<bean:write name="imageField" property="jahiaField.object.formatedSize" />


Is this correct and the doc is not Up to date ? Or did I used something
wrong ?

Thanks Lorenzo




-- 
Lorenzo Patocchi
Dipl. Ing. STS/ETS/HTL
[email protected] - www.cryms.com
Tel: +41 91 60 55266
Cel: +41 79 375 0891
Fax: +41 91 223 9797
 
Cryms sagl
Via Cantonale 34a
6928 Manno - Lugano
Switzerland
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.