TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] Help understanding why crop works in this code butstripHtml does'nt

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 ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 27.06.2008, 12:53
StephenBungert
Gast
 
Beiträge: n/a
Standard [TYPO3] Help understanding why crop works in this code butstripHtml does'nt

[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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 27.06.2008, 14:02
StephenBungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Help understanding why crop works in this code butstripHtml does'nt

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 30.06.2008, 11:02
StephenBungert
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Help understanding why crop works in this code butstripHtml does'nt

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:40 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39