Sunday 02 May 2010 11:52:42 pm
Hi Robin, Thanks for the warm welcome :) I've searched the forum before posting and found the topic you've suggested. I've tried it, but without success. I've checked which template renders the image within the link that I've set as "slideshow". I found that actually there are 3 templates for rendering an embedded image. Here are the used templates:
design/standard/templates/content/datatype/view/ezxmltags/embed.tpl
extension/ezwebin/design/ezwebin/override/templates/embed/image.tpl
extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezimage.tpl In the first one - embed.tpl - there is a variable $link_parameters which has a property class that contains the right CSS class I've set - "slideshow". In the second template - image.tpl - there is also a variable $link_parameters which holds the proper CSS class name. However in the third template - ezimage.tpl - there is no $link_parameters variable. There are two other variables - $link_class and $css_class that I thought might contain data abouth the CSS class "slideshow", but no luck :) I've tried to pass the $link_parameters from image.tpl to ezimage.tpl like this (image.tpl):
{attribute_view_gui attribute=$object.data_map.caption link_parameters=$link_parameters} but again no luck :) In the ezimage.tpl I get the passed variable $link_parameters as not defined. Also, when I'm editing the content via the WYSIWYG editor, when I check the HTML source code for the embedded image within the link, it is properly rendered with the CSS class "slideshow" (the A tag that is wrapping the image). However when I publish the content the link doesn't contain the CSS class anymore. I suppose if I can pass the $link_parameters to ezimage.tpl or find where the A tag is stripped upon publishing, this could help. Or any other solution, of course :) Any suggestions are highly welcomed!
Regards,
Yasen Georgiev
|