[Typo3-shop] XHTML Compliance
Nick Weisser
typo3 at openstream.ch
Sat Jan 28 21:19:07 CET 2006
Hi Franz,
I've found a small bug in lib/class.tx_ttproducts_list_view.php with
reference to XHTML compliance in line 327:
$markerArray['###PRODUCT_NOTE###'] =
substr($markerArray['###PRODUCT_NOTE###'], 0,
$this->conf['max_note_length']) . '...';
is missing a closing p tag.
The entire ###PRODUCT_NOTE### marker contains something like this
<p class="bodytext">blabla ...</p>
So if the product note is being cut because it is longer than
max_note_length, the closing p tag gets cut as well.
To correct this, simply substitute line 327 with this:
$markerArray['###PRODUCT_NOTE###'] =
substr($markerArray['###PRODUCT_NOTE###'], 0,
$this->conf['max_note_length']) . '...</p>';
Regards,
Nick
Openstream Internet Solutions
http://www.openstream.ch
More information about the TYPO3-project-tt-products
mailing list