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 committed Aug 2, 2023
1 parent 34ea1d1 commit 842526c
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 842526c

Please sign in to comment.