Forums / Setup & design / Fetch Object Relation

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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