Fetch Object Relation

Author Message

Softriva .com

Wednesday 07 February 2007 10:08:40 am

I created a class that have an Object Relation datatype. The relation is to pdf file. The attribute name is report_pdf. How can I make the link for people to download?

Xavier Serna

Friday 09 February 2007 1:39:33 am

Hi OOzy,

the link to the file itself could be made with an attribute_view_gui of the file attribute of the related object. In your case probably would be $node.data_map.report_pdf.content.data_map.file. You can modify the aspect of the link with an override of ezbinary.tpl datatype view.

hope this helps!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.