[opencms-dev] getting a file property inside a contentloop
shishank.mathur at wipro.com
shishank.mathur at wipro.com
Thu Mar 16 05:23:29 CET 2006
Hi,
Here is one way to get title property
<cms:contentloop element="RelatedNews">
<c:set var="relatedNews">
<cms:contentshow element="<Name of the element>" />
</c:set>
<a href="<cms:link> <cms:contentshow/> </cms:link>"> <cms:property name="Title" file="${pageContext.relatedNews}"/> </a>
</cms:contentloop>
Do not forget to include taglib
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core <http://java.sun.com/jstl/core> " %>
Cheers,
Shishank
http://www.pcmspace.com
________________________________
From: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Ruben Martin
Sent: Wednesday, March 15, 2006 7:15 PM
To: opencms-dev at opencms.org
Subject: [opencms-dev] getting a file property inside a contentloop
Hello list,
I am trying to iterate over a list of related news on a structured content. Each related new is a string with the path to a file in the VFS.
How can i get the title property of that file ?? I can't do: <cms:property name="Title" file="<cms:contentshow/>"/>
<cms:contentloop element="RelatedNews">
<a href="<cms:link> <cms:contentshow/> </cms:link>"> <cms:property name="Title" file="${ ?????? }"/> </a>
</cms:contentloop>
By the way, anyone knows how to configure a VfsFileWidget so that it only shows files on a certain directory
Thank you
**********************************************************
Rubén Martín Calderero
Fundación CTIC
Parque Científico y Tecnológico de Gijón
Edif. Centros Tecnológicos
33203 Cabueñes - Gijón - Asturias
T. +34 984291212; Fax +34 984390612
E-mail: ruben.martin at fundacionctic.org
**********************************************************
Este e-mail y cualquiera de sus ficheros anexos son confidenciales y pueden incluir información privilegiada. Si usted no es el destinatario adecuado (o responsable de remitirlo a la persona indicada), agradeceríamos lo notificase o reenviase inmediatamente al emisor. No revele estos contenidos a ninguna otra persona, no los utilice para otra finalidad, ni almacene y/o copie esta información en medio alguno.
Opiniones, conclusiones y otro tipo de información relacionada con este mensaje que no sean relativas a la actividad propia de CTIC deberán ser entendidas como exclusivas del emisor.
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060316/532ea566/attachment.htm>
More information about the opencms-dev
mailing list