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"
Bookmarks inbookmarks:mine
inbookmarks:1234
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 user 981

Front-end Twig templates that can Craftily render markup, scripts, and styles.

3
votes
I'm just gonna post my comment as an answer, because I think it's the way to go. I'd use the kebab filter instead of url_encode, like this: {jobTitle|kebab}
answered Aug 10 '15 by megatrond
8
votes
I usually do this like so: {% for block in blocks %} {% if loop.index0 % 2 == 0 %} <div> {% endif %} {# other stuff #} {% if loop.index0 % 2 == 1 or loop.last %} </div> {% endif %} …
answered Jul 2 '15 by megatrond
2
votes
Just use a variable that has the same keys as the entry model will have. {% set entries = [{title: 'hello', ...}, {title: 'hello2', ...}] %} {% for entry in entries %} {# stuff #} {% endfor %} …
answered Apr 24 '17 by megatrond
4
votes
Default limit is 100, try adding .limit(null) to the query
answered Oct 21 '15 by megatrond