Skip to content

Database Collection

Johan Janssens edited this page Jun 9, 2019 · 17 revisions

A collection can easily be retrieved from any database table.

Table of contents

Frontmatter

A database collection can be simply defined by specifying the table where the collection should be retrieved from, for example:

collection:
   source: database?table=users

Note: database is a shortcut for the com:pages.model.database identifier

The table parameter defines the name of the table and also accepts a table identifier.

Custom Collections

To create custom filesystem collections you need to extend the ComPagesModelDatabase class.

Clone this wiki locally