![]() |
Category Titles
Recently just ran a test import in 4.1.3 and at first I noticed that category titles are not using & in place of & which I thought would be a minor issue if I just change the titles to use & when I import via CSV (3.x-4.x method) instead and that is what I did. But when I'm browsing in a category with subcategoires I would see & instead of & in the subcategory which is a problem.
I've looked in ../skin1/customer/main/subcategories.tpl but that one is "escaped" which is what I believe what I need to do. It is the bar on the left side with all the root categories that is not "escaped". So I made the change to ../skin 1/customer/categories.tpl from Code:
{$c.category} Code:
{$c.category|escape} |
Re: Category Titles
Any help would be greatly appreciated.
|
Re: Category Titles
Not a problem. That is what X-Cart should have done in the first place.
|
Re: Category Titles
Works here. Great idea. Except it breaks CDSEO in the page titles... I'm sure I can find a cure for this.
If we report this to x-cart, can I get my points back for what they claim was a "feature" of xcart? I'll argue with them next week. I'm too tired. ;) |
Re: Category Titles
Hmm...we'll probably be getting CDSEO soon, so if you figure something out, we'd be interested in seeing it too.
Thanks for the replies! |
Re: Category Titles
Sorry for the double post! But I found some additional information.
I've noticed some additional files that may need editing. I have a skin from X-Cart so it may not necessary apply to everyone. The following files may / may not require change: Quote:
I'm rather confused about location.tpl since it uses Quote:
EDIT: While I'm on this, my Webmaster Mode seems to have broken slightly whereas it was working fine before. I'm not sure exactly what affected it. Could clearing the cache help? |
Re: Category Titles
Quote:
Its a custom Smarty modifier that X-Cart introduced in 4.1. You can find it in include/templater/plugins/modifier.amp.php. All it does is convert any '&' not followed by 'amp;' to '&'. Pretty silly in my book. They should be using escape. But I guess they want to let people use '&' in their category titles but not ' ' or ''' etc. They really should choose - either you can use HTML in the titles or you can't. If you can't everything should go through escape. If you can leave it alone and its up to whoever is entering it to get it right. |
Re: Category Titles
Ralph, you made my night with this discovery!
Quote:
Or ™ (trademark) -- that was supposed to read: Code:
& # 8482; (lose the space before and after the & and # -- vBulletin is parsing this as html) I'm on deadline for a tradeshow, or i would dig deaper into this tonight. It will have to wait a few days... but i'll re-visit this thread soon! Can't wait... |
Re: Category Titles
OK, then I believe location.tpl should go from
Code:
{* $Id: location.tpl,v 1.14 2005/11/17 06:55:36 max Exp $ *} Code:
{* $Id: location.tpl,v 1.14 2005/11/17 06:55:36 max Exp $ *} |
All times are GMT -8. The time now is 10:21 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.