
Actually, page behavior is the same like before.. i.e. I get empty second image when no second image uploaded. I just look into the code, and the second link is like this:
<img src...
So, any hints?
Code: Select all
{assign var="foo" value=$items[numloop].link|regex_replace:"/.*\/(.*)\//":"\\1"}
{assign var="image" value="uploads/images/catalog/`$foo`_t_1_100_1.jpg"}
{if file_exists($image)}<img src="{root_url}/{$image}" />{/if}