dukie6666 Posted March 3, 2009 Report Share Posted March 3, 2009 in der Produktdetailseite werden ja dier weiteren Bilder ineiner Schleife erzeugt: {if $more_images !=''}{foreach name=aussen item=img_data from=$more_images} <li><a href="{img img=$img_data.file type=m_popup path_only=true}" title="{$products_name}">{img img=$img_data.file type=m_info alt=$products_name}</a></li> {/foreach}{/if} Ich möchte so wie bei sp2.1 die Bilder einzeln in einer if Schleife einfügen, also so in der Art: {if $PRODUCTS_IMAGE_1 != ''}<div><a href="{$PRODUCTS_POPUP_LINK_1}"><img src="{$PRODUCTS_IMAGE_1}" alt="{$PRODUCTS_NAME}" /></a></div> {/if} {if $PRODUCTS_IMAGE_2 != ''}<div><a href="{$PRODUCTS_POPUP_LINK_2}"><img src="{$PRODUCTS_IMAGE_2}" alt="{$PRODUCTS_NAME}" /></a></div> {/if} weiss einer da dengenauen Syntax? Link to comment Share on other sites More sharing options...
mzanier Posted March 3, 2009 Report Share Posted March 3, 2009 puh, ansich ist das ein array, darum versuch mal {$more_images.0.file} {$more_images.1.file} etc Link to comment Share on other sites More sharing options...
dukie6666 Posted March 4, 2009 Author Report Share Posted March 4, 2009 danke...geht Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.