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

Page Title in 4.2

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #41  
Old 12-29-2009, 06:25 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Page Title in 4.2

You are definitely missing something
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #42  
Old 12-29-2009, 07:32 AM
 
manishp manishp is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 41
 

Thumbs up Re: Page Title in 4.2

Quote:
Originally Posted by cflsystems
You are definitely missing something

Strange!! It started working fine after i bounced my local virtual machine.

Great Mod and thanks so much for sharing your work!
__________________
X-Cart: 4.2.1
Reply With Quote
  #43  
Old 01-07-2010, 09:52 AM
 
kidroush kidroush is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 80
 

Default Re: Page Title in 4.2

I just want to change the Page Title on the home page. How do I do this is 4.2.2?
__________________
Lance
X-Cart Gold Version 4.6.1
Reply With Quote
  #44  
Old 01-08-2010, 05:34 AM
 
philrisk philrisk is offline
 

X-Adept
  
Join Date: Jul 2009
Location: Newcastle upon Tyne, UK
Posts: 412
 

Default Re: Page Title in 4.2

I have just installed this mod. Works perfectly. Thanks for putting all that together.
__________________
Live with Gold 4.5.1
Dedicated Linux server
MaxCDN 4 pull zones
Dedicated SSL

Reply With Quote
  #45  
Old 01-11-2010, 07:49 AM
 
kidroush kidroush is offline
 

Advanced Member
  
Join Date: Apr 2008
Posts: 80
 

Default Re: Page Title in 4.2

Just figured out how to change just the home page title if anyone is interested. Just edit: lbl_site_title
Actually, this label is blank so just insert your Page Title text that you want and whatever you enter here will be displayed as the Page Title for your home page only!
__________________
Lance
X-Cart Gold Version 4.6.1
Reply With Quote

The following user thanks kidroush for this useful post:
cosy (10-13-2010)
  #46  
Old 04-29-2010, 04:19 PM
 
retrieval retrieval is offline
 

Newbie
  
Join Date: May 2005
Posts: 1
 

Default Re: Page Title in 4.2

Here's a quick and dirty way to display only the current page in the title (for 4.2):

-Set your titles to display like so: "Page :: category :: site"

-Open up /skin1/customer/service_head.tpl

-At the top of the page, replace <title>{$html_page_title|escape}</title> with the following:

<title>{capture assign=temp_regex}{literal}/::[\w\W\s]{1,}/{/literal}{/capture}{$html_page_title|escape|regex_replace:$te mp_regex:""}</title>

-Your titles should now be limited to displaying the current page. Make sure you don't use any "::" in your product titles if you do this!
__________________
v. 3.4.5
Reply With Quote
  #47  
Old 08-31-2010, 01:03 PM
 
nickff nickff is offline
 

Senior Member
  
Join Date: Aug 2010
Posts: 132
 

Default Re: Page Title in 4.2

Thanks so much for this cfl! Worked perfectly.
__________________
nick hoag
looking forward to the future
http://thefutureforward.com
xcart versions 4.2.x, 4.3.x, 4.4.x
Reply With Quote
  #48  
Old 02-07-2011, 02:50 AM
  Bean's Avatar 
Bean Bean is offline
 

Member
  
Join Date: Feb 2011
Location: UK
Posts: 15
 

Default Re: Page Title in 4.2

Hi Steve,
I've just installed this on 4.2.3 - However, for some reason, the Homepage title isn't showing? It just shows the "PUT HERE THE TITLE YOU WANT ON HOME PAGE". The variable is picked up in the $html_page_title though?
I edited lbl_site_title, but no joy?

Great mod though - Much appreciated!!
__________________
X-Cart 4.4.2 Gold
Reply With Quote
  #49  
Old 02-07-2011, 02:53 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Page Title in 4.2

Of course. Replace "PUT HERE THE TITLE YOU WANT ON HOME PAGE" with whatever you want.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Bean (02-07-2011)
  #50  
Old 02-07-2011, 02:55 AM
  Bean's Avatar 
Bean Bean is offline
 

Member
  
Join Date: Feb 2011
Location: UK
Posts: 15
 

Default Re: Page Title in 4.2

Oh - Really? Haha!

Um.

Whoops.


Thank you!!


*slopes off*
__________________
X-Cart 4.4.2 Gold
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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:55 AM.

   

 
X-Cart forums © 2001-2020