New answers tagged conditional
2
votes
Accepted
showing content conditionally in layout
Assuming you've configured your sections with URI formats, Craft will inject an entry variable into the global Twig context whenever the request URL matches an existing entry (this is true for the ...
Top 50 recent answers are included
Related Tags
conditional × 136templating × 37
matrix × 15
forloop × 9
field × 8
entries × 7
categories × 7
url × 7
entry × 6
navigation × 6
entries-field × 6
logic × 6
variable × 5
datetime × 4
assets × 3
plugin-craftcommerce × 3
form × 3
structure × 3
sections × 3
category × 3
entry-type × 3
limit × 3
craft4 × 3
craft3 × 2
plugin-development × 2