[TYPO3-english] Using dynamic values with getText (DB) (Tomas Mrozek)
Bernard Munslow
bernard.munslow at iws.es
Tue Oct 27 11:02:08 CET 2009
Hi Tomas!
>
> Maybe there's some sweet solution using getText but if not, you can
> probably do it with the CONTENT object. Something like this:
>
> my_cObj = CONTENT
> my_cObj {
> table = tx_foreign_table
>
> select {
> pidInList = 0
> recursive = 10
> selectFields = fieldname
> andWhere.data = GPVar:fe_users|uid
> andWhere.intval = 1
> andWhere.wrap = uid=|
> }
>
> renderObj = TEXT
> renderObj.field = fieldname
> }
>
> You didn't state where the UID is coming from so you might need to
> (significantly) modify the above code.
>
> Tomas Mrozekthey
>
Thanks a lot!!! I did have to tweak the code slightly but it's just
what I needed. I really appreciate your help!
Greetings,
.- Bernard
More information about the TYPO3-english
mailing list