[TYPO3-shop] LINK_ITEM and invalid HTML code

Franz Holzinger franz at fholzinger.com
Mon Jun 9 15:48:43 CEST 2008


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