Entries
Introduction
The entries
extends query
functions to provide you with a convenient, fluent interface to fetch streams and non-streams database records respectively.
Queries Function{.link}
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.
Entry Criteria{.link}
<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{.link}
Pagination
Queries Function - Pagination{.link}
Caching
Queries Function - Retrieving Results{.link}
Aggregates
Queries Function - Retrieving Results{.link}
Where Clauses
Queries Function - Retrieving Results{.link}
JSON Where Clauses
Queries Function - Retrieving Results{.link}
Ordering, Grouping, Limit, & Offset
Queries Function - Retrieving Results{.link}
Searching
Queries Function - Searching{.link}