[TYPO3-english] how to use restult of USER function in where clause?
bernd wilke
t3ng at bernd-wilke.net
Wed Aug 21 17:41:49 CEST 2013
Am 21.08.13 17:15, schrieb Erich Specht:
> I have a USER function that returns a list of uids of tt_news items selected
> via a flexible content element. The result of the function is a string
> like: 3.4
>
>
>
> I'm trying to use the result of the function in the where clause of a news
> plugin. The following works, but when I try to insert the dynamic version
> of the where clause it doesn't work.
>
as 'where' is only an attribute your assignment
> extensions.ttnews_selectconf {
> where < temp.related_news
> }
results in
extensions.ttnews_selectconf {
where = COA
where.10 = TEXT
:
}
('COA' is no valid uid)
you can try to use cObject:
extensions.ttnews_selectconf {
where.cObject < temp.related_news
}
or you may enhance your attribut with stdWrap-functionality inside(!)
your extension:
$GLOBALS['TSFE']->cObj->stdWrap($conf['where'], $conf['where.']);
bernd
--
http://www.pi-phi.de/cheatsheet.html
More information about the TYPO3-english
mailing list