[opencms-dev] Module to publish articles with attachments

Alessandro Magnolo alessandro.magnolo at gmail.com
Tue Mar 29 17:12:35 CEST 2005


Hello,

I am working on a module to publish articles that have files attached.
For example a new product release announcement followed by links to
the package and pdf documentation.

I would like to enable the cms user (editor) to write the news and
then pick the files to be attached from the download gallery. I'm
doing it with XML documents in OpenCms.
Everything works fine exept that I'm not able to show the attached
files a meaningful description.

Here's the attachment definition in the document XSD:
  <xsd:element name="Allegati" type="OpenCmsVfsFile" minOccurs="0"
maxOccurs="10" />

And here is the JSP snippet:
  <ul>
     <cms:contentloop element="Allegati">
        <li>
           <a href="<cms:link><cms:contentshow /></cms:link>">
              <!-- here goes the item "title" as given in the gallery -->
           </a>
        </li>
     </cms:contentloop>
  </ul>

I would like to show the title that was given to the file when it was
uploaded in the gallery. Is there any way to do this with OpenCms?

Maybe I shall use scriptlets instead of tags?

Thank you,
Alessandro Magnolo



More information about the opencms-dev mailing list