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

Add text to the Title browser page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-01-2006, 08:17 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Add text to the Title browser page

When I am at page in my cart, in the browser window it displays a "Title" for page:
ex. Your Company Name - Microsoft Internet Explorer

(Question)
What should I do to display other text on the browser "Title" for the page?

ex. Your Company Name : Login - Microsoft Internet Explorer
*note: add the " : Login " to the browser window.
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #2  
Old 10-02-2006, 07:42 PM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Add text to the Title browser page

Do anyone have any input?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #3  
Old 10-02-2006, 10:02 PM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Add text to the Title browser page

The title can be modified by changing the content between <title></title> in customer/home.tpl. If you add anything it will show on every page, unless you code it to only show on certain pages.
Reply With Quote
  #4  
Old 10-03-2006, 09:48 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Add text to the Title browser page

How do I add a <title> tag to a page?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #5  
Old 10-04-2006, 06:52 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Add text to the Title browser page

This is the taging I see in the customer/home.tpl for the title names.
- What do I add if I want to place a title on the "login.tpl" page?


(Curent <title> tags)

<TITLE>
{capture name=customer_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}
{/capture}
</TITLE>
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #6  
Old 10-04-2006, 07:45 AM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Add text to the Title browser page

There is a couple of ways to do this.

1. Add to the location array in a php file. For example add

PHP Code:
$location[] = array("Login"); 

This will be assigned as the $location variable you see in the Smarty Template.

2. If you know what the $main assigned Smarty variable is for a specific page you can add something like this to the <title></title> section.

HTML Code:
{if $main eq "Login"} ---code--- {/if}

Then what you have as “---code---“ will only show on the Login screen.
Reply With Quote
  #7  
Old 10-04-2006, 08:41 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Add text to the Title browser page

IF I wanted to have add a --name-- which applied to ever page in my cart is their a easy way to do that, other then writing each $main eq "page name here"} for each page?
__________________
x-cart 4.0.16v
linux server
Reply With Quote
  #8  
Old 10-04-2006, 08:43 AM
  wjbrewer's Avatar 
wjbrewer wjbrewer is offline
Banned
 

X-Adept
  
Join Date: Feb 2005
Location: Pittsburgh, PA
Posts: 504
 

Default Re: Add text to the Title browser page

Yea, just add it inbetween the <title></title> tags. And it will be everywhere.
Reply With Quote
  #9  
Old 10-04-2006, 08:56 AM
 
mmoskva mmoskva is offline
 

eXpert
  
Join Date: Aug 2005
Location: Pennsylvania
Posts: 306
 

Default Re: Add text to the Title browser page

I have one more question.Thanks for the help by the way. :

> for pages like "Search", "Cart", "Checkout" pages is their a way for me to adjust what is showing in the title? Becuase I cannot see those applied their and titles do show for the pages?
__________________
x-cart 4.0.16v
linux server
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 07:41 AM.

   

 
X-Cart forums © 2001-2020