Forums / Developer / Empty Object relation list

Empty Object relation list

Author Message

J-A Eberhard

Friday 29 April 2005 2:49:19 am

I have a custom made class for Lecturer that uses Object relation list to show the list of their publications. (Publications are another custom made class).
Lecturer can have a publication and it's working fine, the list is displayed. If there is no publication, I would like to test if there is no publication and not displaying the "publication box" altogether.
How can I test in /node/view/full if my Object Relation list is empty or not?
Thanks

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Eirik Alfstad Johansen

Saturday 30 April 2005 2:15:45 am

Hi J-A,

Do

{$node.data_map.identificator_of_your_object_relation_attribute|attribute(show)}

To look for appropriate values to test against. Then, do a {section show=condition}{/section}.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/