Sunday 10 October 2010 1:45:13 pm
If you want to be able to use a attribute_view_gui operator here, you should probably override the datatype/view/ezimage.tpl in your own extension. Your override ezimage.tpl should then accept a parameter such as rel. If you choose not to override with your own template you will have to retrieve the actual image values in your template without using the attribute_view_gui convenience operator. The easiest thing is for you to create your own override by putting it in your own extension /templates/content/datatype (basically copy the structure to the ezimage.tpl being called at the moment. If your overriden ezimage.tpl checks for a set value such as rel your should be able to insert it as any variable inside the attribute_view_gui operator the same way as image_class and link_to_image is set in the default one. You could copy the default ezimage.tpl to your own extension and add the rel attribute in this copied file. Be sure to activate debuging and turn off all cache while developing. You really need to be able to check which templates are being rendered to figure out ezpublish:)
|