Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Editing Title in home.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-26-2006, 10:42 AM
 
bridal-land bridal-land is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 38
 

Default Editing Title in home.tpl

I put the below code in and it seems to work great however my static, gift cert, cart, terms, privacy statement, recover password, search & check out pages have no title now. Well it shows the url in the title but thats no good.

I tried to add
{elseif $main eq "help"}
{$lng.txt_subtitle_help}
{elseif $main eq "cart"}
{$lng.txt_subtitle_cart}
{elseif $main eq "checkout"}
{$lng.txt_subtitle_checkout}
{elseif $main eq "order_message"}
{$lng.txt_subtitle_thankyou}
{elseif $main eq "wishlist"}
{$lng.txt_subtitle_wishlist}
{elseif $main eq "giftcert"}
{$lng.txt_subtitle_giftcerts}

With no luck. Not sure if its even the right way to do it. Or maybe im just putting it in the wrong part of the code. Version 3.5

Thanks for any help you can offer.

Quote:
Originally Posted by Jon
Try this:

Code:
<TITLE> {if $main eq "catalog" and $current_category.category eq ""} Home Theatre, Projectors, Plasma TVs at Australia's Audio Visual Online Shop {elseif $config.SEO.page_title_format eq "A"} {section name=position loop=$location step=-1} {math equation="x-1" x=$smarty.section.position.total assign="secondlast"} {if $smarty.section.position.iteration ne $smarty.section.position.total}{$location[position].0|escape}{/if} {if $smarty.section.position.iteration ne $secondlast}{if not %position.last%} - {/if}{/if} {/section} {else} {section name=position loop=$location step=-1}{$location[position].0|escape}{if not %position.last%} :: {/if}{/section}{/if}</TITLE>
__________________
Mike
X-Cart 4.0.18
http://www.bridal-land.com
Reply With Quote
  #2  
Old 04-26-2006, 10:50 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Put an {else} statement in there as a catachall at the end.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-26-2006, 03:20 PM
 
bridal-land bridal-land is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 38
 

Default

Im so new to this do you mean like this
<TITLE>
{if $main eq "catalog" and $current_category.category eq ""}
Home Theatre, Projectors, Plasma TVs at Australia's Audio Visual Online Shop
{elseif $config.SEO.page_title_format eq "A"}
{section name=position loop=$location step=-1}
{math equation="x-1" x=$smarty.section.position.total assign="secondlast"}
{if $smarty.section.position.iteration ne $smarty.section.position.total}{$location[position].0|escape}{/if}
{if $smarty.section.position.iteration ne $secondlast}{if not %position.last%} - {/if}{/if}
{/section}
{else}
{section name=position loop=$location step=-1}{$location[position].0|escape}{if not %position.last%} :: {/if}{/section}{/if}{else}whatever i want the catch all phrase to be</TITLE>
__________________
Mike
X-Cart 4.0.18
http://www.bridal-land.com
Reply With Quote
  #4  
Old 04-26-2006, 07:29 PM
 
bridal-land bridal-land is offline
 

Advanced Member
  
Join Date: Feb 2006
Posts: 38
 

Default

Ok i've been playing with this and heres what I got. I got it to fix all those other pages with Keyword1 - Keword2-Ect but the only thing is the following code also adds it to the end of all my pages.

Code:
<TITLE> {if $main eq "catalog" and $current_category.category eq ""} Personalized Ribbons | Printed Ribbon | Napkins | & More {section name=position loop=$location step=-1} {math equation="x-1" x=$smarty.section.position.total assign="secondlast"} {if $smarty.section.position.iteration ne $smarty.section.position.total}{$location[position].0|escape}{/if} {if $smarty.section.position.iteration ne $secondlast}{if not %position.last%} - {/if} {/if} {/section} {else} {section name=position loop=$location step=-1}{$location[position].0|escape}{if not %position.last%} :: {/if}{/section}{/if}Keyword1 - Keword2-Ect</TITLE>{
__________________
Mike
X-Cart 4.0.18
http://www.bridal-land.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:45 PM.

   

 
X-Cart forums © 2001-2020