View Full Version : help please...thanks
fallen1
04-14-2007, 05:05 PM
i want to custumize 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?
{$cat.TITLE="mytext"} does not work...:confused:
You have to do it in the PHP code, I think you're looking for the code in index.php?
Content visible to registered users only.
fallen1
04-14-2007, 05:54 PM
is there another way to do it in the template?...
im actually editing the main.tpl
cause i twill be with in the foreach tags...
{* 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...
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.