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

Best way to edit/manage title tag?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-06-2007, 01:40 PM
 
pumpkins pumpkins is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 56
 

Default Best way to edit/manage title tag?

I am trying to complete the list of things to do for on-page seo. However I am having some difficulties with the title tags.

1)The first problem:

I have XC seo module installed. when I open up home.tpl there are these code on the within the title tag:

Quote:

<title>{strip}
{capture name=title}
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{if not %position.first%}&nbsp;-&nbsp;{/if}
{$location[position].0|strip_tags|escape}
{/section}
{else}
{section name=position loop=$location step=-1}
{if not %position.first%}&nbsp;-&nbsp;{/if}
{$location[position].0|strip_tags|escape}
{/section}
{/if}
{/capture}
{if $config.SEO.page_title_limit <= 0}
{$smarty.capture.title}
{else}
{$smarty.capture.title|replace:"&nbsp;":" "|truncate:$config.SEO.page_title_limit|replac e:" ":"&nbsp;"}
{/if}
{/strip}</title>


I am not sure what to change so that it won't screw it up, since I am not sure if it will affect XC SEO.

2)the goal.

The goal is to be able to specify specific title for each page. I would like to inject into the title the 3 keywords I would be optimizing for that particular page. I know there is this mod:

Product Meta Tags Plus!
http://bcsengineering.com/store/customer/product.php?productid=95&cat=22&page=1

But would this mod give me control over the title on homepage? and would it conflict with XC SEO? Is there a better solution?

Anyway, thanks in advance
__________________
X-Cart Gold Version 4.1.8
Reply With Quote
  #2  
Old 09-06-2007, 01:44 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Best way to edit/manage title tag?

I don't think XC SEO has anything to do with the title tag, as that is the default code you are looking at. You definitely want the BCS mod, along with their mfr, category and static page mods. You'll need to hard code a home page tag.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 09-28-2007, 06:54 PM
 
dwcthunderbird dwcthunderbird is offline
 

Newbie
  
Join Date: Nov 2006
Posts: 5
 

Default Re: Best way to edit/manage title tag?

Balinor,

Would you mind showing how you would hard code a title tag in the home page?

I've tried hard looking for a solution but couldn't find an answer.

Thanks
__________________
xcart version 4.0
Reply With Quote
  #4  
Old 09-28-2007, 09:26 PM
 
pumpkins pumpkins is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 56
 

Default Re: Best way to edit/manage title tag?

Dwcthunderbird,

try here:

http://forum.x-cart.com/showthread.php?t=32642
__________________
X-Cart Gold Version 4.1.8
Reply With Quote
  #5  
Old 09-28-2007, 10:00 PM
 
dwcthunderbird dwcthunderbird is offline
 

Newbie
  
Join Date: Nov 2006
Posts: 5
 

Default Re: Best way to edit/manage title tag?

Thank you Balinor.

The information from the link was most detailed.
__________________
xcart version 4.0
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 02:54 PM.

   

 
X-Cart forums © 2001-2020