Thursday 07 January 2010 12:01:32 pm
Hi all, forgive me if this should really be in another forum, but here goes: I have a template override for content/datatype/view/ezimage.tpl inside a custom extension. The override mechanism is fine, but using the 'attribute_view_gui' template function, I should be able to pass specific input parameters like: image_class, css_class, link_to_image, href, border_size
The values to pass to each of these inputs come from either $object, $object_parameters or $link_parameters, and these work apart from for the css_class input. Which object variable contains a CSS class string I can use to pass to the css_class input from an ezoe image-insert popup/dialogue? Here is the line of code I was staring at for a whole afternoon yesterday: I have hard-coded a CSS class passed to the css_class input which works as expected but I want to take the value of a drop-down menu of CSS classes in an ezoe image-insert popup/dialogue so it's dynamic not static:
{attribute_view_gui attribute=$object.data_map.image
image_class=$object_parameters.size
href=$link_parameters.href
target=$link_parameters.target
css_class=image-right}<a></a> I hope I have explained this OK and thanks for reading :-)Russ
Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom
Believe nothing, consider everything.
|