Skip to content

Commit

Permalink
Reduce example to one and describe it
Browse files Browse the repository at this point in the history
  • Loading branch information
kitzberger authored and github-actions[bot] committed Aug 2, 2023
1 parent 47a16f4 commit 8a9b22d
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions Documentation/Functions/Numrows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,21 @@ select

.. _numRows-examples:

Examples
========
Example
=======

Get the number of content elements within certain colPos of the current page.

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
page {
10 {
variables {
numberOfAllContentElements = TEXT
numberOfAllContentElements.numRows {
table = tt_content
}
numberOfContentElementsInColPosOne = TEXT
numberOfContentElementsInColPosOne.numRows {
table = tt_content
select.where = {#colPos}=1
}
10 = FLUIDTEMPLATE
10 {
variables {
numberOfContentElementsInColPosOne = TEXT
numberOfContentElementsInColPosOne.numRows {
table = tt_content
select.where = {#colPos}=1
}
}
}

0 comments on commit 8a9b22d

Please sign in to comment.