X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How to edit Title on Static Pages (https://forum.x-cart.com/showthread.php?t=15933)

staalejg 08-15-2005 12:54 PM

How to edit Title on Static Pages
 
How can I edit the title tag for Static Pages?

Regards,

balinor 08-15-2005 02:52 PM

It automatically pulls the name of the page. All page titles in X-Cart are controlled by the title tag in customer/home.tpl.

staalejg 08-15-2005 05:04 PM

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}

balinor 08-15-2005 05:11 PM

What version are you using? Please put it in your signature.

staalejg 08-16-2005 06:54 AM

Sorry, using X-Cart version 4.0.14

balinor 08-16-2005 06:58 AM

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.

staalejg 08-16-2005 07:42 AM

That works great. Thanks for the heads up.


All times are GMT -8. The time now is 10:18 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.