15
Yesssssssssssssssssssss §
I found it !
Thank you zyspec for your explanation and Mamba for your examples and links.
I found a solution with paramaters, no hard coded.
It was hard for me but it works.
Code :
<{foreach item=data from=$search.module_data}>
<{assign var="url_image_overloaded" value=$xoops_imageurl|cat:$data.image_link}>
<{assign var="path_image_begin_overloaded" value=$xoops_rootpath|cat:"/themes/"|cat:$xoops_theme}>
<{assign var="path_image_full_overloaded" value=$path_image_begin_overloaded|cat:"/"|cat:$data.image_link}>
<{if file_exists($path_image_full_overloaded)}>
<img src="<{$url_image_overloaded}>" alt="<{$data.image_title}>"/ title="<{$data.image_title}>"> <a href="<{$data.link}>"><{$data.link_title}>a>
<{else}>
<img src="<{$data.image_link}>" title="<{$data.image_title}>" alt="<{$data.image_title}>"/> <a href="<{$data.link}>"><{$data.link_title}>a>
<{/if}>
<br />
<{/foreach}>