-
Notifications
You must be signed in to change notification settings - Fork 9
Database Collection
Waseem Sadiq edited this page Jun 11, 2019
·
17 revisions
A collection can easily be retrieved from any database table.
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
query parameter defines the name of the table and also accepts a table identifier, in the form of com:[component].database.table.[name].
To create custom filesystem collections you need to extend the ComPagesModelDatabase
class.
[todo]
Got a question or need help? We have a forum on Github Discussions where you can get in touch with us.