Page 1 of 2
Hi all, first want t
Posted: 17 Apr 2008, 13:07
by corinne
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
Hi, it should work,
Posted: 17 Apr 2008, 20:29
by Jan
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
The problem seems to
Posted: 17 Apr 2008, 20:35
by Jan
The problem seems to be this method used in form tags:
$uri->toString()
Jan
Re: Picture page is not W3C valid! How to fix this?
Posted: 18 Oct 2008, 16:47
by Floddy
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
Re: Picture page is not W3C valid! How to fix this?
Posted: 18 Oct 2008, 17:44
by Jan
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

Re: Picture page is not W3C valid! How to fix this?
Posted: 19 Oct 2008, 00:03
by Floddy
Hi,
It's in the action URL in the form tags.
Thanks,
Floddy
Re: Picture page is not W3C valid! How to fix this?
Posted: 19 Oct 2008, 21:39
by Jan
so there is a problem because changing this, it will cause problems on sites with SEF enabled

I will take a look at it
Re: Picture page is not W3C valid! How to fix this?
Posted: 20 Oct 2008, 07:03
by Floddy
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
Re: Picture page is not W3C valid! How to fix this?
Posted: 20 Oct 2008, 11:17
by Jan
maybe there can be some custom edit like str_replace -> & -> & but don't know what will SEF do with some link ?
Re: Picture page is not W3C valid! How to fix this?
Posted: 12 Feb 2009, 23:41
by st3n
fow what is the "form" there?