Add info about $objects template variable in tutorial part 1
authorMatthias Schmidt <gravatronics@live.com>
Mon, 23 Jan 2017 18:03:41 +0000 (19:03 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 23 Jan 2017 18:03:41 +0000 (19:03 +0100)
pages/tutorial/tutorial-series/tutorial_tutorial-series_part-1-base-structure.md

index 9be9b1b9c870bda65e66455aea4646f0529ce6f6..0681b43b510a6fb2c183d19d49e36519394b32f8 100644 (file)
@@ -197,6 +197,8 @@ We will go piece by piece through the template code:
    The `{hascontent}{content}{/content}{/hascontent}` construct ensures the `.paginationTop` element is only shown if the `pages` template plugin has a return value, thus if a pagination is necessary.
 1. Now comes the main part of the page, the list of the people, which will only be displayed if any people exist.
    Otherwise, an info box is displayed using the generic `wcf.global.noItems` language item.
+   The `$objects` template variable is automatically assigned by `wcf\page\MultipleLinkPage` and contains the `PersonList` object used to read the people from database.
+   
    The table itself consists of a `thead` and a `tbody` element and is extendable with more columns using the template events `columnHeads` and `columns`.
    In general, every table should provide these events.
    The default structure of a table is used here so that the first column of the content rows contains icons to edit and to delete the row (and provides another standard event `rowButtons`) and that the second column contains the ID of the person.