Questions tagged [case]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
44 views

Craft's case-insensitive routing

I was just surprised when I noticed, that our Craft installation is not case sensitive with routing: E.g. https://domain.com/route/to/page-with-content delivers the same content as https://domain.com/...
0
votes
0answers
19 views

Avoid Camel Case for S3 VolumeFolder

I have an S3 volume with a row in the volumefolders table that uses camel case. This is not appropriate for our S3 configuration. Can I just update the row to downcase the name and path? Is it ...
2
votes
2answers
271 views

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 ...
1
vote
1answer
192 views

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> ...
2
votes
1answer
79 views

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?
7
votes
1answer
2k views

"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 ...
1
vote
3answers
236 views

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 ...