eZ Community » Forums » General » Show image object in template

Show image object in template

Show image object in template

Wednesday 09 July 2003 3:37:00 pm - 1 reply

I have a class that has two attributes; a TextField and an Image.

In the template for this class, I want to show the small version of this image.

I guess it's simple, but I really can't figure it out...


Wednesday 09 July 2003 4:04:10 pm

You can pass this as a variable to attribute_view_gui

{attribute_view_gui attribute=$myAttribute image_class=small}

Here is the complete list of variables that are in the standard distribution with their defaults.


Also, check the directory design/standard/templates/content/dadatype/view for parameters of the other datatypes.

You can also add variables of your own of course, but don't do that in the standard design directory



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

36 542 Users on board!

Forums menu

Proudly Developed with from