Shape 5

Joomla Club Extensions => Frontpage Display Version 1 - Club => : robbrown November 05, 2008, 06:28:18 AM



: htmlentities on url
: robbrown November 05, 2008, 06:28:18 AM
If SEF URL's are not being used frontpage display will not validate as XHTML.

Something like the following should be added:

:
$s5_fd_box1_link = htmlentities($s5_fd_box1_link);
$s5_fd_box2_link = htmlentities($s5_fd_box2_link);
$s5_fd_box3_link = htmlentities($s5_fd_box3_link);
$s5_fd_box4_link = htmlentities($s5_fd_box4_link);
$s5_fd_box5_link = htmlentities($s5_fd_box5_link);
$s5_fd_box6_link = htmlentities($s5_fd_box6_link);


: Re: htmlentities on url
: mikek November 05, 2008, 07:32:52 AM
Hello, the module is 100% xhtml compliant. The non-SEF urls that Joomla exports for menus are actually what are not xhtml compliant. The module is simply displaying the links. You would need to first set your site up for SEF and then copy the SEF urls and use those for the module.


: Re: htmlentities on url
: robbrown November 06, 2008, 06:27:17 AM
Hello, the module is 100% xhtml compliant.
The module is 100% xhtml complient assuming the data in all the parameters are complient.

The module is simply displaying the links.
If your module is going to display Joomla's links then it should first run htmlentities.

How about if I was to link to 'http://www.google.co.uk/search?q=xhtml'. This would then make my page invalid. A user shouldn't have to encode the URL's before they enter them. The module should check a URL like this before it is displayed.

You would need to first set your site up for SEF and then copy the SEF urls and use those for the module.
You shouldn't have to enable SEF url's to generate a XHTML complient page.

In addition, none of the content boxes are checked. I personally don't think that the user should have to encode their quote marks and ampersand signs etc.


Thanks for your reply.
Dave