[TYPO3-dev] Problem with fluid viewhelper f:cObject
Jigal van Hemert
jigal.van.hemert at typo3.org
Tue Apr 19 17:15:43 CEST 2016
Hi,
On 19/04/2016 14:57, Stefan Padberg wrote:
> TYPO3 7.6.4
> This one doesn't work:
>
> lib.test = COA
> lib.test.10 = LOAD_REGISTER
> lib.test.10.colPos.cObject = TEXT
> lib.test.10.colPos.cObject.value.current = 1
>
> lib.test.20 = CONTENT
> lib.test.20.table = tt_content
> lib.test.20.select.pidInList = this
> lib.test.20.select.orderBy = sorting
> lib.test.20.where.data = REGISTER:colPos
> lib.test.20.where.intVal = 1
> lib.test.20.where.wrap = colPos=|
>
> lib.test.30 = RESTORE_REGISTER
>
'where' is a property of select, not of the CONTENT object.
Furthermore, please user 'markers' to inject data as it will
automatically be quoted or turned into an integer:
lib.test.20 = CONTENT
lib.test.20 {
table = tt_content
select {
pidInList = this
orderBy = sorting
where = colPos=###column###
markers {
column.data = REGISTER:colPos
}
}
}
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-dev
mailing list