Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] Help understanding why crop works in this code butstripHtml does'nt within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; [globalVar = TSFE:id = 147] plugin.tt_news.limit = 15 plugin.tt_news.displayList.linkTitleField = bodytext plugin.tt_news.displayList.linkTitleField.stripHtm l = 1 ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
[globalVar = TSFE:id = 147]
plugin.tt_news.limit = 15 plugin.tt_news.displayList.linkTitleField = bodytext plugin.tt_news.displayList.linkTitleField.stripHtm l = 1 plugin.tt_news.displayList.linkTitleField.crop = {$toolTipCrop} | ... | 1 plugin.tt_news.excludeAlreadyDisplayedNews = 0 [global] The above code works... partly. The crop happens, but the html is still in the tool tip. Why doesn't it work, but crop does? They are both stdWrap properties. I asked once before but received no answers. Anyone have any ideas please? ----- -- Stephen Bungert -- View this message in context: http://www.nabble.com/Help-understan...p18152613.html Sent from the TYPO3 English mailing list archive at Nabble.com. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
ok. I have since discovered that the problem is caused by tt_news on line
1030 of class.tx_ttnews.php $GLOBALS['TSFE']->ATagParams = $pTmp.' title="'.$this->local_cObj->stdWrap(trim(htmlspecialchars($row[$titleField])), $lConf['linkTitleField.']).'"'; It sends the content through htmlspecialchars() so there is no html to remove. Is there anyway in typoscript to reverse the htmlspecialchars() function, like passing through htmlspecialchars_decode() ----- -- Stephen Bungert -- View this message in context: http://www.nabble.com/Help-understan...p18153670.html Sent from the TYPO3 English mailing list archive at Nabble.com. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Ok. now I want to try and use a postUserFunc
[globalVar = TSFE:id = 151] page.includeLibs.something = fileadmin/templates/fmf/prepForStripHtml.php plugin.tt_news.limit = 15 plugin.tt_news.displayList.linkTitleField = bodytext plugin.tt_news.displayList.linkTitleField.postUser Func = reverseSpecialChars plugin.tt_news.excludeAlreadyDisplayedNews = 0 [global] And here is the content of the php file: <?php function reverseSpecialChars($content,$conf) { return "worked " . $content; } ?> I doens't seem to be altering the contents of .linkTitleField. So what have I done wrong this time? ----- -- Stephen Bungert -- View this message in context: http://www.nabble.com/Help-understan...p18191384.html Sent from the TYPO3 English mailing list archive at Nabble.com. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] crop grafic | Costa Papadopoulo | typo3-english@lists.netfielders.de | 3 | 09.05.2008 21:09 |
| [TYPO3] Problem understanding $TCA['tt_content']['types'] | micho edo | typo3-english@lists.netfielders.de | 3 | 21.04.2008 10:56 |
| [TYPO3] help with understanding how pi1 class php files relate tothe database | dave typo | typo3-english@lists.netfielders.de | 0 | 29.05.2007 17:36 |
| [TYPO3-dev] Understanding ext_tables.php | Fr. Simon Rundell SCP | typo3-dev@lists.netfielders.de | 1 | 23.05.2007 10:35 |
| [TYPO3-german] crop und [more] | Thomas Hümmler | typo3-german@lists.netfielders.de | 4 | 04.04.2007 12:44 |