Share » Forums » Developer » Image datatype

Image datatype

Image datatype

Tuesday 22 March 2011 12:52:04 pm - 3 replies

Author Message

Philippe VINCENT-ROYOL

Tuesday 22 March 2011 1:10:22 pm

Hi David,

Are you sure to have image attribute on your class? Maybe check {$node.data_map|attribute(show, 1)}

Else you have a relation object .. check {$node.object.related_contentobject_array|attribute(show,1)}

Thats it :)

Certified Developer (4.1): http://auth.ez.no/certification/verify/272607
Certified Developer (4.4): http://auth.ez.no/certification/verify/377321

G+ : http://plus.tl/dspe
Twitter : http://twitter.com/dspe

Damien Pobel

Tuesday 22 March 2011 1:13:37 pm

Hi David,

you can pass parameters to attribute_view_gui. In the case of image, you can write :

{attribute_view_gui attribute=$node.data_map.image image_class=medium}

to display the medium variation. You can look at the beginning design/standard/template/content/datatype/view/ezimage.tpl template to see what parameters are available.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

David Santiso

Tuesday 22 March 2011 1:41:17 pm

Thank you very much ;)

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu