[TYPO3-english] how to use restult of USER function in where clause?

Stefan Reichelt eichelt at web.de
Wed Aug 21 17:48:31 CEST 2013


Hello Erich,

> where < temp.related_news

You cannot copy a cObject into a property unless it expects a cObject.
But if the property supports/contains stdWrap, then this will:

where.stdWrap.cObject < temp.related_news

The 'stdWrap.' might not be needed.
But it will only work if your 'where' property does support stdWrap
functionality. I don't know about that though.


Also, you could give 'tt_news.uid IN ( )' as a wrap to your USER object:
20.stdWrap.wrap = tt_news.uid IN (|)

Even if a cObject does not support wrap (or other stdWrap functions)
from the get go, all stdWrap functions are always accessable through
'stdWrap' itself.


Kind regards
Stefan


More information about the TYPO3-english mailing list