[TYPO3] stdWrap with space

JoH asenau info at cybercraft.de
Sat Jun 9 00:04:32 CEST 2007


> I have two questions.
> I have menu like this:
>
> ...
>   1 = TMENU
>   1 {
>     noBlur = 1
>     NO {
>       linkWrap = <li>|</li>
>       stdWrap.preCObject = TEXT
>       stdWrap.preCObject.value = section&nbsp;
>       stdWrap.preCObject.lang.de = section DE&nbsp;
>     }
>   }
> ...
>
> I need prepend text in link with "section " (with space).
>
> 1. Can it be done without &nbsp;? With only normal space?
> I found noTrimWrap, but I don't know how to use it.
>
> 2.Can it be done better than with preCObject?

Yes - use noTrimWrap ;-)

stdWrap.noTrimWrap = |section ||

That's it.

noTrimWrap adds a pipe in front of the wrap and another one at the end.
Anything between those pipes is treated just like a usual wrap but without
trimming the whitespace.

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
openBC/Xing: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com




More information about the TYPO3-english mailing list