Wondering
01-17-2009, 07:34 PM
Good Day One and All,
I am new here must say that after a couple of days of playing around I am starting to pick up on a few things but one thing that is beyond my knowledge is [MOD] programming.
I have found the Category Icon [MOD] and would like to do the same thing for the Link ID on the detail.php page. I know how to modify the Category code to go to a new image directory but I am not sure on what the code for the Link ID is. So would this be correct?
{if $ID eq 0}<img src="{$smarty.const.FULL_TEMPLATE_PATH}/images/link/{$ID}.png" border="0" align="left" style="margin-right: 10px; margin-top: 5px; margin-bottom: 5px;" />
{else}
If so then would I just have to insert in directly into the detail.php page so that;
$data['ID'] = $id;
Would not be
$data['ID'] = {if $ID eq 0}<img src="{$smarty.const.FULL_TEMPLATE_PATH}/images/link/{$ID}.png" border="0" align="left" style="margin-right: 10px; margin-top: 5px; margin-bottom: 5px;" />
{else}
I have no idea about programming and I am trying to teach myself from examples so please let me know if I am even close on this one.
Thanks.
I am new here must say that after a couple of days of playing around I am starting to pick up on a few things but one thing that is beyond my knowledge is [MOD] programming.
I have found the Category Icon [MOD] and would like to do the same thing for the Link ID on the detail.php page. I know how to modify the Category code to go to a new image directory but I am not sure on what the code for the Link ID is. So would this be correct?
{if $ID eq 0}<img src="{$smarty.const.FULL_TEMPLATE_PATH}/images/link/{$ID}.png" border="0" align="left" style="margin-right: 10px; margin-top: 5px; margin-bottom: 5px;" />
{else}
If so then would I just have to insert in directly into the detail.php page so that;
$data['ID'] = $id;
Would not be
$data['ID'] = {if $ID eq 0}<img src="{$smarty.const.FULL_TEMPLATE_PATH}/images/link/{$ID}.png" border="0" align="left" style="margin-right: 10px; margin-top: 5px; margin-bottom: 5px;" />
{else}
I have no idea about programming and I am trying to teach myself from examples so please let me know if I am even close on this one.
Thanks.