Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
numRows
This object allows you to specify a
SELECT query, which will be
executed in the database. The object then returns the number of
rows, which were returned by the query.
Properties
table
table
-
- Type
- Table name
Name of the database table to query.
select
select
-
- Type
- select
Select query for the operation.
The sub-property
selectis overridden internally withFields count.(*)
Example
Get the number of content elements within certain
col of the current
page.
10 = FLUIDTEMPLATE
10 {
variables {
numberOfContentElementsInColPosOne = TEXT
numberOfContentElementsInColPosOne.numRows {
table = tt_content
select.where = {#colPos}=1
}
}
}