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 |
Entries hold the content that you want to display on your web pages. Each entry has an Author, a Post Date, an Expiration Date (if desired), a status (enabled or disabled), and, of course, content.
2
votes
1
answer
114
views
Fetch entries filtered by array within custom field
I typically test with the entries loop, like so:
{% if product.dates.dates[0] | date('U') > now | date ('U') %}
but would prefer to only get entries fitting that criteria in the first place. … Is there any way to fetch entries according to the first value in a an array like this? …
4
votes
Tag to fetch URL and Title of a entry when supplied it's ID
Sounds like you just need this:
{% set entry = craft.entries.id(412).first() %}
<a href="{{ entry.url }}">{{ entry.title }}</a>
1
vote
Optimizing website menu
Are you experiencing performance issues? If not, is this overhead really an issue?
If it is, how about caching the global menu for a really long time? https://craftcms.com/docs/templating/cache
4
votes
1
answer
3k
views
How to loop through category group and identify those related to entry
Looping through a category group to show links to all the categories. This is an entry page and I want to highlight any categories assigned to the entry. How do I do that? I've tried this so far:
{% …
0
votes
1
answer
1k
views
How to check custom field not empty within params?
The following returns entries correctly:
{% paginate craft.entries.section('sectionName').customField(':notempty:').limit(10) as products %}
{% for product in products %}
{% include 'incs/ … Removing the customField: ':notempty', from params in the second example returns entries, so I'm guessing it's the way I'm using customField within params? …
1
vote
1
answer
321
views
Return entries where custom field partially contains
all entries containing those product ids. … Can I filter my entries using the custom field directly?
{# pluginIds = 'p666a, p678a' #}
{% set entries = craft.entries.section('sectionName').customField(pluginIds) %} …
1
vote
1
answer
1k
views
How to fetch entries based on contents of several custom fields?
I'm currently doing something like this:
{% set vars = "foo, bar" %}
{% set entries1 = craft.entries.section('sectionName').customField1(vars).limit(NULL) %}
{% for entry in entries1 %}
{% if en …
2
votes
Accepted
Creating a smart restaurant menu
It will be of the Entries field-type and only allow the user to select Allergens entries. … It'll need a custom field for the Recipes, which would be an Entries field where the user can only select Recipe entries. …
2
votes
1
answer
151
views
Query two sections filtered by different custom fields, then order them
In other words, having already fetched the entries, I need to order them by two different fields.
I'm not sure this is possible without a plugin - could anyone give me any pointers? …