View Single Post
  #7  
Old 06-29-2005, 11:45 AM
 
sbtiti sbtiti is offline
 

Advanced Member
  
Join Date: Feb 2005
Posts: 32
 

Default

OK I tried it again and here's what I did / happened:

Here's my original code:

Code:
<TITLE> {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {$location[position].0|escape} {if not %position.last%} :: {/if} {/section} {else} {section name=position loop=$location step=-1} {$location[position].0|escape} {if not %position.last%} :: {/if} {/section} {/if} </TITLE>

As per your instructions I added the line:

Code:
{$lng.lbl_seo_title}{/strip}
after the section code and I added the strip code after the /title code so that it ended up looking like this:

Code:
<TITLE> {if $config.SEO.page_title_format eq "A"} {section name=position loop=$location} {$location[position].0|escape} {if not %position.last%} :: {/if} {/section} {else} {section name=position loop=$location step=-1} {$location[position].0|escape} {if not %position.last%} :: {/if} {/section} {$lng.lbl_seo_title}{/strip} {/if} </TITLE>{/strip}

It looks like my code differs from yours slightly, I don't have the strip code before the title and a few other smaller things.

Here's the error I get when using that code:

Code:
Fatal error: Smarty error: [in customer/home.tpl line 19]: syntax error: mismatched tag {/strip}. expected {/else} (opened line 14). (Smarty_Compiler.class.php, li in /home/gmgadmin/public_html/cart/Smarty-2.6.3/Smarty.class.php on line 1082

If I remove the two strip codes then the frontpage (home.php) finally came up, but there is no slogan appearing in the browser title on home.php or any other page. I did recreate the langauge entry as a label before all of this.

Do you have any more ideas of how I can get this to work?
__________________
Version 4.0.9
Reply With Quote