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

How to edit Title on Static Pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-15-2005, 12:54 PM
 
staalejg staalejg is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 63
 

Default How to edit Title on Static Pages

How can I edit the title tag for Static Pages?

Regards,
__________________
Juan (Teksavers)
Reply With Quote
  #2  
Old 08-15-2005, 02:52 PM
 
balinor balinor is offline
 

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

Default

It automatically pulls the name of the page. All page titles in X-Cart are controlled by the title tag in customer/home.tpl.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-15-2005, 05:04 PM
 
staalejg staalejg is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 63
 

Default

Here is my title section in home.tpl. Am I missing something in here that will fix my problem? Thanks Ryan.

-----
{strip}
<title>
{if $main eq "catalog"}
{if $location eq ""}
{else}
{section name=position loop=$location start=1 }
{if %position.last% eq "true"} {$location[position].0|escape}{/if}
{/section}
{/if}
{elseif $main eq "product"}
{if $product.product ne ''} {$product.product}{/if} - Buy Used Cisco Sell
{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}
{/if}
</title>
{/strip}
__________________
Juan (Teksavers)
Reply With Quote
  #4  
Old 08-15-2005, 05:11 PM
 
balinor balinor is offline
 

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

Default

What version are you using? Please put it in your signature.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 08-16-2005, 06:54 AM
 
staalejg staalejg is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 63
 

Default

Sorry, using X-Cart version 4.0.14
__________________
Juan (Teksavers)
Reply With Quote
  #6  
Old 08-16-2005, 06:58 AM
 
balinor balinor is offline
 

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

Default

I assume that is your custom code in there, as that is not the default title code for .14.

If you want to use if statements for static pages, they would look like this:

{elseif $smarty.get.pageid eq "x"}

where x is the number of the static page.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 08-16-2005, 07:42 AM
 
staalejg staalejg is offline
 

Advanced Member
  
Join Date: Jun 2005
Posts: 63
 

Default

That works great. Thanks for the heads up.
__________________
Juan (Teksavers)
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 08:42 PM.

   

 
X-Cart forums © 2001-2020