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)
-   -   Hardcoding Title tag (https://forum.x-cart.com/showthread.php?t=56690)

calpicms 11-22-2010 03:35 PM

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!

cflsystems 11-22-2010 03:43 PM

Re: Hardcoding Title tag
 
{if $main eq "catalog" && $current_category.category eq ""}

calpicms 11-22-2010 06:27 PM

Re: Hardcoding Title tag
 
it still did not work.

cflsystems 11-23-2010 03:06 AM

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

calpicms 11-23-2010 06:55 AM

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!

masada3336 12-02-2010 03:29 PM

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!



All times are GMT -8. The time now is 12:03 PM.

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