Share » Forums » General » Displaying custom class images -...

Displaying custom class images - ezimagealiashandler

Displaying custom class images - ezimagealiashandler

Friday 20 April 2007 12:11:54 pm - 2 replies

Author Message

Nabil Alimi

Friday 20 April 2007 12:42:59 pm

Hi Michael,

Simple. As expected. :)

You can use the <b>attribute_view_gui</b> operator.

{attribute_view_gui attribute=$w.object.contentobject_attributes[6] image_class=(small|large|original|*any-other-format-youve-defined)}

Besides, rather than

$w.object.contentobject_attributes[6]

you can use something like

$w.data_map.*attribute-identifier-of-the-attribute-you-wish-to-handle*

It will be much more easier to maintain and in case you change the orders of your attributes in your content class, you won't need to change your templates.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Michael Scott

Friday 20 April 2007 12:50:37 pm

Exactly what i needed. Thanks for such a quick reply!

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

36 542 Users on board!

Forums menu