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

Hardcoding Title tag

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-22-2010, 03:35 PM
 
calpicms calpicms is offline
 

Newbie
  
Join Date: Oct 2010
Posts: 8
 

Default Hardcoding Title tag

I am trying to hard code my a title tag into skin/common_files/customer/service_head.tpl


{if $main eq "catalog" AND $current_category.categoryid lt 1}
<title>HOMEPAGE</title>
{else}
{get_title page_type=$meta_page_type page_id=$meta_page_id}
{/if}


For some reason it is not figuring out the if logic to recognize that it's the homepage. What would the correct IF statement be to recognize you are on the homepage?

Thanks!
__________________
X-Cart 4.4 Gold
Modules:
CDSEO
Buy Together
Reply With Quote
  #2  
Old 11-22-2010, 03:43 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Hardcoding Title tag

{if $main eq "catalog" && $current_category.category eq ""}
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 11-22-2010, 06:27 PM
 
calpicms calpicms is offline
 

Newbie
  
Join Date: Oct 2010
Posts: 8
 

Default Re: Hardcoding Title tag

it still did not work.
__________________
X-Cart 4.4 Gold
Modules:
CDSEO
Buy Together
Reply With Quote
  #4  
Old 11-23-2010, 03:06 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Hardcoding Title tag

run cleanup.php. also make sure you are modifiying correct file - 4.4.0 uses some files from the respective skin directory not common files, look in the directory which skin you are using for the same file
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #5  
Old 11-23-2010, 06:55 AM
 
calpicms calpicms is offline
 

Newbie
  
Join Date: Oct 2010
Posts: 8
 

Default Re: Hardcoding Title tag

you are correct about me forgetting to update the same file in the skin directory. thank you so much for helping me out!
__________________
X-Cart 4.4 Gold
Modules:
CDSEO
Buy Together
Reply With Quote
  #6  
Old 12-02-2010, 03:29 PM
 
masada3336 masada3336 is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 115
 

Default Re: Hardcoding Title tag

Anyone know how I would hardcode some text in front of the title tags? I can't find anywhere there is the actual <title> tag...I've looked everywhere I can think, but can't find it. Thanks for the help!

I'm specifically trying to add some text before every title tag, like <title>CUSTOM TEXT {usual title here}</title>

Quote:
Originally Posted by calpicms
I am trying to hard code my a title tag into skin/common_files/customer/service_head.tpl


{if $main eq "catalog" AND $current_category.categoryid lt 1}
<title>HOMEPAGE</title>
{else}
{get_title page_type=$meta_page_type page_id=$meta_page_id}
{/if}


For some reason it is not figuring out the if logic to recognize that it's the homepage. What would the correct IF statement be to recognize you are on the homepage?

Thanks!
__________________
4.4.5 - with Customized Smart Template
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 12:13 PM.

   

 
X-Cart forums © 2001-2020