$builder
$builder :
Provides extra sugar for page fetches
findInPath( $path, $mode = '=') : \Ceo\View\Functions\Fetch\Collection
Provide a simple interface to handle findInPath functionality to find articles that fall in a SSTS path classification. Modifiers allow you to change the search mode
= Exact match (default)> Ends with< Starts with~ Contains<> Does not contain{# find articles where the ssts path matches 'sports/tennis' #}
{% set article = fetch('article').wherePublished().findInPath('sports/tennis') %}
{# find articles where the ssts path contains 'sports/tennis' anywhere #}
{% set article = fetch('article').wherePublished().findInPath('sports/tennis', '~') %}
| $path | ||
| $mode |
findByTags( $tags = array(), $mode = 'AND', $binds = null) : array
Provide a simple interface to handle findByTags functionality ``` {% set article = fetch('article').wherePublished().findByTags(['foo', 'bar']) %} {% set article = fetch('article').wherePublished().findByTags(['foo', 'bar'], 'NOT') %} ``` Sluggifies the name so "Top Stories" and "top-stories" are treated the same.
Passing 'AND' or 'OR' for $mode will include tags, passing 'NOT' will exclude them,
e.g. if you're looking for articles not tagged 'top-stories', use 'NOT' for $mode;
| $tags | ||
| $mode | ||
| $binds |
findByAuthors( $authors = array(), $mode = 'AND', $binds = null) : array
Provide a simple interface to handle findByAuthors functionality ``` {% set article = fetch('article').wherePublished().findByAuthors(['foo', 'bar']) %} ``` Sluggifies the name so "Top Stories" and "top-stories" are treated the same.
| $authors | ||
| $mode | ||
| $binds |