Hi all, first want to say this is a very nice gallery. I try to build my websites as clean as possible and when I run the album page through the W3C validator it dit not pass. The page with the categories is fine, but when you click on the category you'll get to the pictures page and that one is not valid. It has for example the following error:
"cannot generate system identifier for general entity "view"."
> this comes from the URL generated by the gallery:
"index.php?option=com_phocagallery&view=category&id=1&Itemid=57" method="po....."
Is there a way to fix this?
Thanks a lot!!!
Corinne
Picture page is not W3C valid! How to fix this?
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Hi, it should work,
Hi, it should work, the & should by replaced by & while using JRoute method in Joomla ... but maybe there is some problem... I take a look at it... but I think, this (& instead of &) you get everywhere, in e.g. articles too..
Jan
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
The problem seems to
The problem seems to be this method used in form tags:
$uri->toString()
Jan
$uri->toString()
Jan
If you find Phoca extensions useful, please support the project
-
Floddy
- Phoca Newbie

- Posts: 3
- Joined: 18 Oct 2008, 13:13
Re: Picture page is not W3C valid! How to fix this?
Hi,
I noticed today that the w3 xhtml verifier didn't like the gallery html, because of the "&"
Same thing in Phoca Guestbook, by the way.
Is this being changed, or should I perhaps go with a home-made template override?
Thanks,
Floddy
I noticed today that the w3 xhtml verifier didn't like the gallery html, because of the "&"
Same thing in Phoca Guestbook, by the way.
Is this being changed, or should I perhaps go with a home-made template override?
Thanks,
Floddy
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Picture page is not W3C valid! How to fix this?
Hi, please let me know the exact place of "&" ... if this is the link, then I cannot do anything because link are created by JRoute method 
If you find Phoca extensions useful, please support the project
-
Floddy
- Phoca Newbie

- Posts: 3
- Joined: 18 Oct 2008, 13:13
Re: Picture page is not W3C valid! How to fix this?
Hi,
It's in the action URL in the form tags.
Thanks,
Floddy
It's in the action URL in the form tags.
Thanks,
Floddy
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Picture page is not W3C valid! How to fix this?
so there is a problem because changing this, it will cause problems on sites with SEF enabled
I will take a look at it
If you find Phoca extensions useful, please support the project
-
Floddy
- Phoca Newbie

- Posts: 3
- Joined: 18 Oct 2008, 13:13
Re: Picture page is not W3C valid! How to fix this?
My first thought was to run it through htmlspecialchars() or str_replace(), but I'm not completely sure that it would't mess something else up, especially with SEF URLs.
I understand that the whole thing gets trickier, when it's supposed to work in all kinds of configurations!
Thanks,
Floddy
I understand that the whole thing gets trickier, when it's supposed to work in all kinds of configurations!
Thanks,
Floddy
- Jan
- Phoca Hero

- Posts: 49297
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Picture page is not W3C valid! How to fix this?
maybe there can be some custom edit like str_replace -> & -> & but don't know what will SEF do with some link ?
If you find Phoca extensions useful, please support the project
-
st3n
- Phoca Newbie

- Posts: 9
- Joined: 27 Jan 2009, 13:28
Re: Picture page is not W3C valid! How to fix this?
fow what is the "form" there?