MOD: Fateching image path and filename only

Version: 2.1



This Mod will allow you to set within the calling of the image.tpl but to only request the image path and filename rather than providing the tag with the data:



open: common_templates/image.tpl



find:



{if !(($object_type == "category" || $object_type == "detailed_category") && !$icon_image_path)}
{$images.icon.alt}
{/if}




replace with:



{assign var="path_only" value=$path_only}

{if $path_only}
{$icon_image_path|default:$config.no_image_path}
{else}
{if !(($object_type == "category" || $object_type == "detailed_category") && !$icon_image_path)}
{$images.icon.alt}
{/if}
{/if}




example of calling from template just the image path and filename:



{include file=“common_templates/image.tpl” images=$banner.main_pair object_type=“common” path_only=true}



simply just add:



path_only=true



and your all done! hope this helps someone

And this should be implemented into CS asap.



Thank you sir!