help please....thanks

Discussion in 'Directories' started by fallen1, Apr 15, 2007.

  1. #1
    i want to customize the title of my home directory page...

    how do you asign a value in the code...i need to set $cat.TITLE into the text i want...

    how do you put that in code?

    im editing the main.tpl

    cause it will be with in the foreach tags...

    this is part of the code:

    {* Display current path *}
    {assign var="current_path" value=""}
    {foreach from=$path item=cat name=path}
    {assign var="current_path" value="`$current_path``$cat.TITLE_URL`/"}
    {if $smarty.foreach.path.first}

    i want to put the code here...
    making the $cat.TITLE into my text for the first link...


    {/if}
    {if not $smarty.foreach.path.first} » {/if}
    {if not $smarty.foreach.path.last}
    <a href="{if $smarty.const.ENABLE_REWRITE}{$current_path}{else} index.php?c={$cat.ID}{/if}">{$cat.TITLE}</a>
    {else}
    {$cat.TITLE}
    {/if}
    {/foreach}

    thanks...:)
     
    fallen1, Apr 15, 2007 IP