[TYPO3] stdWrap with space
Stano Paška
stano.paska at gmail.com
Mon Jun 11 06:55:36 CEST 2007
Hmm. this does not work...
temp.rsa.menu1 = HMENU
temp.rsa.menu1 {
entryLevel = 2
wrap = <ul>|</ul>
1 = TMENU
1 {
noBlur = 1
NO {
linkWrap = <li>|</li>
stdWrap.noTrimWrap = |sekcia ||
// stdWrap.preCObject = TEXT
// stdWrap.preCObject.value = sekcia
// stdWrap.preCObject.lang.de = sekcia DE
ATagParams.data = register:count_HMENU_MENUOBJ
ATagParams.wrap = class="hmenu|"
}
ACT < .NO
ACT = 1
ACT {
linkWrap = <li class="active">|</li>
}
}
}
Does noTrimWrap work for other languages? .lang.de, .lang.en, ...
On 6/9/07, JoH asenau <info at cybercraft.de> 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
>
> --
> 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
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list