[TYPO3-english] Trying to understand the "select" property better

Ernesto Domato edomat at gmail.com
Tue Oct 18 16:11:20 CEST 2011


On Tue, Oct 18, 2011 at 10:55, Ernesto Domato <edomat at gmail.com> wrote:
> Hi,
>
> Given this TS:
>
> lib.test_content = CONTENT
> lib.test_content.table = pages
> lib.test_content.select.uidInList = 5
> lib.test_content.renderObj = TEXT
> lib.test_content.renderObj.field = title
>
> I thought that I should have the "title" of page with uid 5 on
> test_content variable, I'm wrong?. Or:
>
> lib.test_content = CONTENT
> lib.test_content.table = pages
> lib.test_content.select.where = title LIKE 'Prod%'
> lib.test_content.renderObj = TEXT
> lib.test_content.renderObj.field = title
>
> Should bring me all the titles that begins with the "Prod" string?
>
> Because it's not working in that way :-(
>

Ok, I didn't see that if you don't place a value on the "pidInList"
property, then the uid of the actual page is used and that brakes the
query. Is there a way that I can make the "select" ignore the
"pidInList" property?.

Thanks.
Ernesto


More information about the TYPO3-english mailing list