Christian Steger
  • Member for 7 years, 5 months
  • Last seen this week
  • Italy
How can I build a language switcher?
14 votes

I have changed the above code a little bit because it causes an error when I have for example a website with three active locales and an entry with only one or two active locales. The error is: ...

View answer
Ugly Redactor II and how to fix it with some CSS
Accepted answer
4 votes

Here is my eye-friendly code: /* Redactor|Fonts */ [class^="redactor-"], [id^="redactor-"] { font-family: inherit !important; } /* Redactor|Toolbar */ ul.redactor-toolbar a { padding: 12px ...

View answer
Structure - Add class if element has children
4 votes

Try this: <li {% if entry.level == 1 and entry.children|length %}class="has-dropdown"{% endif %}>

View answer
expiryDate in craft_templatecaches
Accepted answer
2 votes

The above code example works. Short and simple answer: daylight saving time (DST) Standard time: -1 hour in database Daylight saving time: -2 hours in database

View answer
302 redirects to locales in main index.php
Accepted answer
2 votes

I would like to share with you my new and improved index.php. With the old version the control panel login didn't work all the time. I've rearranged the code and replaced if (!isset($_GET['p']) || ...

View answer