[TYPO3] htmlSpecialChars in dataWrap

G.Unger skyfreak1 at gmx.net
Fri Oct 3 18:32:08 CEST 2008


hello list

I am piulling this older post up again, as I am struggeling to apply 
htmlSpecialChars for the {field:subtitle} in the following typoscript:


/************************************************/
lib.mainmenu = COA
lib.mainmenu {
		
	10 = HMENU
	10.entryLevel = 0
	10 {
		
		1 = TMENU
		1 {
			
			wrap = <ul id="main-navigation">|</ul>		
			NO = 1
			expAll = 1
			noBlur = 1
			
			NO.stdWrap.field = title
			NO.stdWrap.htmlSpecialChars = 1
			NO.stdWrap.dataWrap = | <br><span>{field:subtitle}</span>
			
			NO.wrapItemAndSub = <li>|</li>
			
			CUR < .NO
			CUR.ATagParams = class="current"
			ACT < .NO
			ACT.ATagParams = class="active"	
				
		}
	}
}
/************************************************/


anybody out there to push me in the right direction?

when I try it either doesnt work or escapes even all the <br> and 
<spans> too :(

thx and rgds,
GUIDO









On 2006-09-11 12:32:21 +0200, "JoH" <info at cybercraft.de> said:

> The trick is, to have a look at TSref to find out the order in which the
> different stdWrap functions are applied. (It's exactly the order they are
> listed at the stdWrap page).
> 
> As you can see, there is first htmlSpecialChars folllowed by some other
> formatting functions wraps and dataWrap. This means:
> 
> blah.dataWrap = whatever
> blah.htmlSpecialChars = 1
> 
> will give you the same result as
> 
> blah.dataWrap = whatever




More information about the TYPO3-english mailing list