Zen Cart Logo
Forums / General Questions / Add amp to link

Add amp to link

Views: 732

Results 1 to 7 of 7
7 May 2011, 10:50 AM
#1
xpcprocy avatar

xpcprocy

New Zenner

Join Date:
Nov 2009
Posts:
15
Plugin Contributions:
0

Add amp to link

Hello guys,

I want to fix the html validator for my site, and it says that insetad of &cPanel= it should be &cPanel= etc etc. I found how to change it, through html_output.php, and products are viewed fine, but if you click on one of the categories, it redirects you to the homepage, i don't know why... Any idea?

Thanks,
Artemis

7 May 2011, 12:00 PM
#2
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,288
Plugin Contributions:
39

Re: Add amp to link

The validator is not pointing to Zen's made links, but rather ones you coded yourself.

~Melanie

7 May 2011, 1:39 PM
#3
xpcprocy avatar

xpcprocy

New Zenner

Join Date:
Nov 2009
Posts:
15
Plugin Contributions:
0

Re: Add amp to link

what you mean i didin't understand..

you can check the site here: https://www.singular-cy.com

7 May 2011, 1:55 PM
#4
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,288
Plugin Contributions:
39

Re: Add amp to link

What I mean... and this is the case....

Zen Cart creates these links correctly, but your template has hand coded sections that were not correctly coded with the amp;

Specifically your category menu.

~Melanie

7 May 2011, 3:11 PM
#5
xpcprocy avatar

xpcprocy

New Zenner

Join Date:
Nov 2009
Posts:
15
Plugin Contributions:
0

Re: Add amp to link

Oh know i understand .. thanks very much for clarifying that.

Btw last questions, can you explain a bit what amp; do?

7 May 2011, 5:05 PM
#6
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,288
Plugin Contributions:
39

Re: Add amp to link

It's an ampersand, it is a special entity reference. It means amp or and. The & in the beginning and the ; on the end are the delimiters for the reference amp.

The & version is for the coded part, like the links in your menu. When it is parsed in the browser it resolves to &.

Here is a cool doc to help you http://htmlhelp.com/tools/validator/problems.html

~Melanie

12 May 2011, 8:35 AM
#7
xpcprocy avatar

xpcprocy

New Zenner

Join Date:
Nov 2009
Posts:
15
Plugin Contributions:
0

Re: Add amp to link

ok thank you very mych, i understand a lot of thinks.. but..
i found where to change the link and make it generate the & but still when you click on categories it redirects you to mainpage.. can you help me with that pls?

Thanks