DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
CountSubEntries¶
This one counts in another table. It's easier to explain with an example: You are displaying page entries and want to show the number of content elements on that page -- this is how you do that.
sDatabase¶
String. If the database differs from dbal/sDatabase, enter it here.
sTable¶
String. Table name of the table to count in. Following our page-contentelement-example:
tt_content
sTableColumn¶
String. The other end of the relation. Connect the column/field on which this callback is performed with this sTableColumn in the foreign table (sTable) where you count in. The example would consist of the pages' uid column on which this callback would be performed. sTableColumn would in that case be set to
pid
sWrap¶
String. Maybe you want to show more than just the default raw number of entries. Just keep in mind to include the pipe sign (|). Example:
| content elements on this page
Of course, as always, you might want to use markers here:
<a href="?id=###uid###">| content elements on this page</a>