| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How to edit Title on Static Pages | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How to edit Title on Static Pages
How can I edit the title tag for Static Pages?
Regards,
__________________
Juan (Teksavers) |
|||||||
#2
|
|||||||
|
|||||||
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 |
|||||||
#3
|
|||||||
|
|||||||
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) |
|||||||
#4
|
|||||||
|
|||||||
What version are you using? Please put it in your signature.
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
Sorry, using X-Cart version 4.0.14
__________________
Juan (Teksavers) |
|||||||
#6
|
|||||||
|
|||||||
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 |
|||||||
#7
|
|||||||
|
|||||||
That works great. Thanks for the heads up.
__________________
Juan (Teksavers) |
|||||||
|
|||
X-Cart forums © 2001-2020
|