Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 5418

Categories are taxonomies for your entries, users, and assets.

2 votes
1 answer
169 views

Categories not adding trailing slash

But it is not working on Categories. Category links are not adding trailing slashes. Is there some additional config I need to add/setup or is this a bug? …
Terry Upton's user avatar
  • 1,894
1 vote
1 answer
175 views

Target first and last items and append if greater than 2

I am trying to loop through a list of categories to add some text to the page. … in categories %} {{ loop.last ? …
Terry Upton's user avatar
  • 1,894
1 vote
1 answer
364 views

Eager loading fields within categories

Is it possible to eagerLoad fields in categories? …
Terry Upton's user avatar
  • 1,894
1 vote
2 answers
88 views

Show related entries grouped by category with category title and description

<div class="container // island-bottom"> {% set categories = craft.categories.group('cables') %} {# {% set cables = craft.entries.section('cables').order('title').limit(null) %} #} {% set …
Terry Upton's user avatar
  • 1,894
1 vote
1 answer
112 views

Grouping entries by category - most efficient approach

I have come up with the following code to group entries by categories; {% set hotTubs = craft.entries() .section('newHotTubs') .orderBy('price asc') %} {% set hotTubsCats = craft.categories() . … group('newHotTubBrands') .relatedTo(hotTubs) %} {% block content %} {# Loop the categories #} {% for category in hotTubsCats.all() %} {{ category.title }} {# Get and loop through entries …
Terry Upton's user avatar
  • 1,894
1 vote
1 answer
856 views

cannot get relatedTo by slug only ID

So I have a categories section called Case Studies and several categories within. …
Terry Upton's user avatar
  • 1,894
1 vote
0 answers
165 views

Filters using multiple query strings with pagination and Craft Commerce

I want to build the ability for the user to be able to filter by certain categories when browsing an existing category. … I should perhaps add that the ability to filter by categories (brands etc) sits in a different location to the order function. …
Terry Upton's user avatar
  • 1,894
5 votes
1 answer
1k views

Ordering of products?

Presumably I need to create either categories or structures and then assign products to these? …
Terry Upton's user avatar
  • 1,894