Search Results
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 |
Categories are taxonomies for your entries, users, and assets.
1
vote
Display an entry's level 1 categories only if the entry is not related to any of that catego...
I also had to make an array of categories that have children related to the entry. Then hide those categories when running the output loop. This is as concise as I could make the code. …
1
vote
Setting up multiple category listing pages on site with multiple locales
The reason it's not working is that domain.com/people/foo/practices/categoryA is not a match for the Category group's URI settings. Only urls that match people/practices/{slug} are going to have that …
10
votes
Accepted
URI for nested categories in Craft 3
You can actually use a bit of Twig logic to determine your category URI formats.
Try this for your Category URI Format:
{parent ? parent.uri : 'what-we-do'}/{slug}
Which is just a more compact way …
3
votes
Using Categories with Structures?
Categories can use their own template and routing which is handy. …
3
votes
Accepted
How can I filter selected/related entries by their categories?
Say, all categories in a category group called "eventsCategories." … .
{# loop through each of the categories #}
{% for category in craft.categories.group('eventsCategories') %}
{# find the exhibitor entries that are related to both the Event entry and category #} …
11
votes
Accepted
How to filter entries by clicking multiple categories on front end
.
{# First you would find any training categories in the URL query string. #}
{% set trainingQuery = craft.request.getParam('training') %}
{# Then find categories that match the slugs in your query string … Create this by finding all the categories in the trainingCategoryGroup group. …