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

improvement to meta.tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 02-18-2006, 11:12 AM
 
alru111 alru111 is offline
 

eXpert
  
Join Date: Dec 2005
Posts: 244
 

Default improvement to meta.tpl

I don't know if this make any difference to SEO, but optimises the output code a little, removing breaks, double spaces etc when descripion doesn't contain html

meta.tpl
find
Code:
<META name="description" content="{$_meta_descr|truncate:"500":"...":false|replace:'"':"'"}"> <META name="keywords" content="{$_meta_keywords|truncate:"500":"":false|replace:'"':"'"}">

replace to
Code:
<META name="description" content="{$_meta_descr|strip|truncate:"500":"...":false|replace:'"':"'"}"> <META name="keywords" content="{$_meta_keywords|strip|truncate:"500":"":false|replace:'"':"'"}">
__________________
X-Cart version 4.0.19
Reply With Quote
  #2  
Old 04-15-2006, 02:56 AM
 
balinor balinor is offline
 

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

Default

Moving to Custom Mods.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


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

   

 
X-Cart forums © 2001-2020