[TYPO3-shop] LINK_ITEM and invalid HTML code

P. Arentzen typo3 at pegu.de
Mon Jun 9 18:25:52 CEST 2008


Hello Franz,

thank you for your tip. I know that I can change the code, but I hate 
doing that in a foreign extension, because it may and - probably will - 
result in other problems.

As most other similar markers are handled correctly I think this is a 
(little) bug and should be changed by developer (or maintainer ;) ) of 
tt_products - perhaps it's already done in a newer version, which is not 
accessible for me.

I would do the code changes if my corrections will be available in next 
2.5.x version.

For now I decided to set config.xhtml_cleaning = all in template setup 
rather than changing code in tt_product.

Greetings

Petra

Dear Petra,

> as I've experienced the link in list view which is created by LIST_ITEM
> marker contains '&' instead of '&' so that HTML output is not valid.
> 
> Which screw do I have to justify for correct link creating? Other links
> on my page are OK.

You can change the code:

tt_products/view/class.tx_ttproducts_list_view.php:

$linkUrl =
$this->pibase->pi_getPageLink($pid,'',$this->marker->getLinkParams('',array(),true));
$linkUrl = htmlspecialchars($linkUrl);
$wrappedSubpartArray['###LINK_ITEM###'] = array('<a href="'. $linkUrl
.'">','</a>',array('useCacheHash' => true));


and the same in single view.

- Franz



More information about the TYPO3-project-tt-products mailing list