I'm just working my way through the content component and I would like to display a link to download a PDF file. If I setup the DataResource and Content as follows, how can I display the content?

     <DataResource
         dataResourceId="DR1105b"
         dataResourceTypeId="OFBIZ_FILE_BIN"
         objectInfo="/applications/content/data/pdftest2.pdf"
         mimeTypeId="application/pdf"
/>
     <Content
         contentId="CDI1105"
         dataResourceId="DR1105b"
         contentTypeId="DOCUMENT"
/> If the DataResource was ELECTRONIC_TEXT, I could display it in a screen like so:

              <widgets>
                  <content content-id="CDI1105" />
              </widgets>

How can I adapt this to work for the PDF download link?

Many thanks in advance,

Chris

Reply via email to