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)
-   -   category special charactor create error (https://forum.x-cart.com/showthread.php?t=45465)

Kannan 02-10-2009 02:17 AM

category special charactor create error
 
Hi,
I am using x-cart pro version 4.1.10

i have one category name as "beauty & template"

First i gave "beauty & template" in category title. But category page display "beauty & template". Because we are passing value to dialog.tpl. I could not give special charactor in category title. when i give as title "beauty & template", it will display correctly everywhere. but it create html validation error.

Could any one solve my problem, i will be grateful.

Thanks in advance

JWait 02-10-2009 05:04 AM

Re: category special charactor create error
 
This is a problem, and I see what you mean. In order to get it to validate it needs to be "beauty & template" but then it will display it that way in the title bar of the web browser, If you use "beauty & template" then it doesn't validate.

I don't have an answer, but if it was me, I would just use "beauty and template" or "beauty - template".

Kannan 02-10-2009 05:11 AM

Re: category special charactor create error
 
Thanks jwait,

But i dont have right to change the charactor. because client have to approve for this change. Not only that, there are lot (more than 30 category) avail some diferent special character. But i have to implement. I already compromised in last site implementation about this. But not now

Anyway i am waiting any one help

thanks in advance

JWait 02-10-2009 05:37 AM

Re: category special charactor create error
 
I'm no expert at Smarty but I think what is not changing the title is in skin1/customer/home.tpl...
Code:

{$location[position].0|strip_tags|escape}
maybe change to
{$location[position].0|escape}
or
{$smarty.capture.title|replace:" ":" "|truncate:$config.SEO.page_title_limit|replace:" ":" "}
maybe change to
{$smarty.capture.title|replace:" ":" "|replace:"&":"&"|truncate:$config.SEO.page_title_limit|replace:" ":" "|replace:"&":"&"}

Good luck!

Kannan 02-10-2009 08:16 PM

Re: category special charactor create error
 
Hi, Jwait
I am sorry. I think you did not reach my point.

my problem describe below:


i have one category name as "beauty & template"

First i gave "beauty & template" in category title. But category page display "beauty & template". Because we are passing value to dialog.tpl. I could not give special charactor in category title. when i give as title "beauty & template", it will display correctly everywhere. but it create html validation error.


In dialog.tpl capture the title. but it disply as beauty & template.

that is my problem. could you any one have solution.

I would be grateful..

thanks for your reply.


All times are GMT -8. The time now is 04:52 PM.

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