[TYPO3] stdWrap with space
Tyler Kraft
headhunterxiii at yahoo.ca
Mon Jun 11 06:50:18 CEST 2007
Unless its been fixed/changed, you could find that no trim wrap might
mess with your menu, as the two pipe characters are also used in the
option split thats for menus.
JoH asenau wrote:
>> 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
>> stdWrap.preCObject.lang.de = section DE
>> }
>> }
>> ...
>>
>> I need prepend text in link with "section " (with space).
>>
>> 1. Can it be done without ? 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
>
More information about the TYPO3-english
mailing list