Entries
Introduction
The entries
extends query
functions to provide you with a convenient, fluent interface to fetch streams and non-streams database records respectively.
The Entries Function
The entries
function starts a model criteria query for database records powered by Streams. Being that nearly everything is a stream this is your primary entry point to retrieving database records on the front-end.
<ul>
{% for category in entries('posts', 'categories').get() %}
<li>
{{ category.slug }}
</li>
{% endfor %}
</ul>
If the namespace
and the post
are the same you may provide the namespace only.
<ul>
{% for post in entries('posts').recent().get() %}
<li>
{{ post.route('view') }}
</li>
{% endfor %}
</ul>
Retrieving Results
Queries Function - Retrieving Results
Pagination
Caching
Queries Function - Retrieving Results
Aggregates
Queries Function - Retrieving Results
Where Clauses
Queries Function - Retrieving Results
JSON Where Clauses
Queries Function - Retrieving Results
Ordering, Grouping, Limit, & Offset
Queries Function - Retrieving Results