[opencms-dev] How to get the file size from items of cms:contentloop?

Daniel Cassiani Rezende talent.drezende at bvsistemas.com.br
Thu Jul 15 21:34:05 CEST 2010


Hi, folks,


I have some Structured Content pages with a list of OpenCmsVfsFile (as declared in the XSD), and I need to show the name, link and file size of each item, but I have no idea of how.

I need something like this:

<ul>
<cms:contentloop element="Attaches">
	<li>
		<a href="<cms:contentshow element=" Attaches/File" />">
		<cms:contentshow element=" Attaches/File" /></a>
		(<cms:contentshow element=" Attaches/File/fileSize" />)
	</li>
</cms:contentloop>
</ul>

Obviously, <cms:contentshow element=" Attaches/File/fileSize" /> doesn't work.

Any ideas???



Thanks,

- Daniel
-------------- next part --------------
Esta mensagem e seus anexos podem conter informações confidenciais ou privilegiadas. Se você não é o destinatário dos mesmos você não está autorizado a utilizar o material para qualquer fim. Solicitamos que você apague a mensagem e avise imediatamente ao remetente. O conteúdo desta mensagem e seus anexos não representam necessariamente a opinião e a intenção da empresa, não implicando em qualquer obrigaçâo ou responsabilidade da parte da mesma. 
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. The contents of this message and its attachments do not necessarily express the opinion or the intention of the company, and do not implies any legal obligation or responsibilities from this company.   


More information about the opencms-dev mailing list