[TYPO3-english] getText and rootLine
Rik Willems
rik at actiview.nl
Fri Jul 29 23:07:37 CEST 2011
> 10 = TEXT
> 10.value = blah
> 10.if.value.data = TSFE:rootLine
> 10.if.isInList = 123
>
> Checks if 123 is a uid of a page in the list found at TSFE:rootLine.
>
> But since rootLIne is not a list but an Array you should try using a
> rootline menu together with if:
>
> 10 = TEXT
> 10.value = blah
> 10.if {
> value = 0
> value.append = HMENU
> value.append {
> special = rootline
> special.range = 0|-1
> 1 = TMENU
> 1 {
> NO {
> doNotLinkIt = 1
> stdWrap.field = uid
> allWrap = ,|
> }
> }
> }
> isInList = 123
> }
>
> If you need it more than once you should create the HMENU inside a
> LOAD_REGISTER and then use the register as the data of your if.value.
>
> HTH
>
> Joey
>
Hi Joey,
Thanks for the tip. Never thought of the array. I assumed it was a comma
seperated string for some reason. Your snippets look very helpful, I'll
try it next week.
Cheers! Rik
More information about the TYPO3-english
mailing list