As it’s mentioned on TYPO3 wiki, we could make a query with TypoScript :
page.60 = CONTENT
page.60 {
table = tt_content
select {
pidInList = 73
where = header != ###whatever###
orderBy = ###sortfield###
markers {
whatever.data = GP:first
sortfield.value = sor
sortfield.wrap = |ting
}
}
}
What is inconvenient for me, it’s parameter pidInList. Even when we didn’t use it, the script substitute current page id with pid in the query. Is there a way to make it simpliler, for example, to realize such simple query :
select title from pages where uid=100;
What be the simpliest TypoScript equivalent ?
For your example:
the simplest TypoScript equivalent is:
Note that the
sourceparameter is mandatory. For more flexible queries I’d recommend writing a quick userFunc.