Skip to main content

Questions tagged [case]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
3 answers

Craft's case-insensitive routing

I was just surprised when I noticed, that our Craft installation is not case sensitive with routing: E.g. delivers the same content as
Matthias Redl-Mann's user avatar
2 votes
2 answers

Loop index inside a switch content builder

How would one construct this? I have built a little content builder and wish now to change the layout HTML on the fly when there are more than one matrix block. In the example below, this is just one ...
moondawg's user avatar
  • 333
1 vote
1 answer

lowercase breadcrumbs

How do I parse the breadcrumbs code: {% if entry.level > 1 %} <ul class="crumbs"> {% for crumb in entry.getAncestors() %} <li>{{ crumb.getLink() }}</li> ...
Nutmeg's user avatar
  • 598
2 votes
1 answer

Tag case sensitivity

At the moment use of Tags seems to be case insensitive. So, for example, it is possible to tag an article as both 'IT Support' and 'it support'. Is it at all possible to make the Tags case sensitive?
Cole Henley's user avatar
  • 1,741
7 votes
1 answer

"A" or "B" in switch statements?

Is it possible to provide different possible values per case? I've tried the following formats without success. {% case "A" or "B" or "C" %} {# run this if case matches A or B or C #} I saw this ...
cballenar's user avatar
  • 1,409
1 vote
3 answers

Opening and closing table within a switch

Within my matrix I have two blocks: Day and Event. Day is just a date field while the event block has two text fields. What's the best way to wrap the event data, which needs to show up as a table ...
Adam McCombs's user avatar
  • 1,695