|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello,
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. Thanks in advance and greetings Petra _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#2
|
|||
|
|||
|
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 _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#3
|
|||
|
|||
|
Franz Holzinger a écrit :
> 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 some lines must be changed too: if ($typoVersion < 3008000) { $pageLink = htmlspecialchars('index.php?id='.$pid.'&'.$this->pibase->prefixId.'['.strtolower($itemTable->marker).']='.intval($row['uid']).'&'.$this->pibase->prefixId.'[backPID]='.$TSFE->id); } else { $addQueryString[$itemTable->type] = intval($row['uid']); $addQueryString['cat'] = $cat; $queryString = $this->marker->getLinkParams('begin_at', $addQueryString); // $pageLink = $this->pibase->pi_getPageLink($pid,'',$queryString); // 1-$TSFE->no_cache $pageLink = htmlspecialchars($this->pibase->pi_linkTP_keepPIvars_url($queryString,1,0,$pid) ); } - Franz _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
|
#4
|
|||
|
|||
|
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 _______________________________________________ TYPO3-project-tt-products mailing list TYPO3-project-tt-products (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-tt-products |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-shop] LINK_ITEM und fehlerhafter HTML-Code | P. Arentzen | typo3-project-tt-products@lists.netfielders.de | 0 | 09.06.2008 11:59 |
| [TYPO3] producing html 4 strict code | Henjo Hoeksma | typo3-english@lists.netfielders.de | 2 | 09.02.2008 19:02 |
| [TYPO3] CE html and openads js code | Bartosz Aninowski | typo3-english@lists.netfielders.de | 0 | 11.10.2007 15:01 |
| [TYPO3] quote html code in rtehtmlarea | Matyi Gábor | typo3-english@lists.netfielders.de | 8 | 21.09.2007 09:20 |
| [TYPO3] HTML-Code in TemplaVoila | Philipp Gruber | typo3-english@lists.netfielders.de | 1 | 20.03.2007 11:36 |