Tuesday 05 July 2005 5:04:04 am
I added a ezurl attribute to my own class (ezp 3.6.0).
In the custom template I'm writing for viewing the objects of that class I want to check if the link corresponding to the ezurl attribute is valid or not before displaying it. But the template language document only a "list" fetch for ezurl objects and nothing for fetching ezurls "by ID" (I want to check the "is_valid" attribute of the ezurl object identified by the ID retrieved from my own class attribute). Actually I retrieve my own ezurl class attribute (in template) with this code ("siteurl" is the attribute identifier):
$node.object.data_map.siteurl
But with this code contain only some of the ezurl attributes (e.g. the ezurl ID, but not the "is_valid" I want to check). I had to write my own template operator?
Thanks, Mauro
|