| Wednesday 10 September 2003 3:05:08 am 
                                                                 I think that problem is this. But i have no results with this method. I have done this: 
{let image_variation="false"align="center"
 href=''}
 
{section show=is_set($attribute_parameters.size)}{set image_variation=$object.data_map.image.content[$attribute_parameters.size]}
 {section-else}
 {set image_variation=$object.data_map.image.content["medium"]}
 {/section}
 
{section show=is_set($attribute_parameters.align)}{set align=$attribute_parameters.align}
 {section-else}
 {set align="center"}
 {/section}
 
{section show=is_set($attribute_parameters.href)}{set href=$attribute_parameters.href}
 {section-else}
 {set href=""}
 {/section}
 
{switch match=$align}{case match="left"}
 <div class="imageleft">
 {section show=$href}<a href={$href|ezurl}>{/section}
 <img src={$image_variation.full_path|ezroot} />
 {section show=$href}</a>{/section}
 
<div style="width: {$image_variation.width}px;">{$object.data_map.caption.content.output.output_text}
 </div>
 </div>
 {/case}
 {case match="right"}
 <div class="imageright">
 {section show=$href}<a href={$href|ezurl}>{/section}
 <img src={$image_variation.full_path|ezroot} />
 {section show=$href}</a>{/section}
 
<div style="width: {$image_variation.width}px;">{$object.data_map.caption.content.output.output_text}
 </div>
 </div>
 {/case}
 {case}
 <div class="imagecenter">
 {section show=$href}<a href={$href|ezurl}>{/section}
 <img src={$image_variation.full_path|ezroot} />
 {section show=$href}</a>{/section}
 
<div style="width: {$image_variation.width}px;">{$object.data_map.caption.content.output.output_text}
 </div>
 </div>
 {/case}
 {/switch}
 {/let} and saved it in design/mydesign/templates/content as embed_image.tpl In override.ini i have putted this: 
[embed_image]Source=content/view/embed.tpl
 MatchFile=embed_image.tpl
 Subdir=templates
 Match[class]=5
 What is wrong? |