[TYPO3-english] Tricky TypoScript question concerning stdWrap and conditions

Peter Niederlag typo3-list at niekom.de
Thu Jun 16 16:28:28 CEST 2011


Hello,

Am 16.06.2011 13:39, schrieb Jörg Klein:
[...]
>        # Set uid of the current page as comparison value
>        value.data = field : uid
>        # It should equal the uid of the page in the rootline on level 1
>        equals.data = leveluid : 1

compile a list of page.uids that are shortcut targets of leveluid:1

select group_concat(target_pid) as page_list from pages where 
page_type=shortcut and shortcut_target_id={leveluid:i1}
insertData=1

either put that in a register or straight into equals.stdRwap.cObject

compare with if.isInList.data = field.uid

group_concat might not be working due to the extra brackets and also 
this query will not include the page on leveluid:1 itself. So you'd 
probably have to drop the group_concat and render each row by appending 
it into a register.

Or, just add a userFunc into equls.postUserFunc that generetes the list 
for you.

Just to give you some ideas. ;)

Greets and hth,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-english mailing list