I have a piece of code that displays quick links to both Events and News. However the links are pointing to the same directory (Events directory for both Events and News) <a href="{$smarty.server.SCRIPT_NAME}/{$nId}/{$aItem.title|urlize}">{$aItem.title|escape}</a> PHP: SO i need the News links to point to this directory (News directory - just a news/ added to the url) <a href="{$smarty.server.SCRIPT_NAME}/news/{$nId}/{$aItem.title|urlize}">{$aItem.title|escape}</a> PHP: In the code below you will see that the Title of each column (News and Events column) is called by {$sType|capitalize} Therefore i need to create an IF statement (IF $sType == News => display news link ELSE display events link) however i have tried and tried and tried and i cannot seem to get it working as i am not 100% sure how to program in the format used below. Can anyone help me insert the IF statement in the code below please <h3 class="news-type"><span class="in1"><span class="in2"><span class="in3">Sports & Social {$sType|capitalize}</span></span></span></h3> <ul class="item-list"> {foreach from=$aNews key=nId item=aItem} <li> <div class="image"> {if $aItem.image != ''}<a href="{$smarty.server.SCRIPT_NAME}/{$nId}/{$aItem.title|urlize}">{html_image file=$sDirPrefix|cat:$aItem.image alt=$aItem.title|escape title=$aItem.title|escape}</a>{else} {/if} </div> <div class="info"> <h3><a href="{$smarty.server.SCRIPT_NAME}/{$nId}/{$aItem.title|urlize}">{$aItem.title|escape}</a></h3> PHP: thanks in advance