mateostabio
  • Member for 4 years, 9 months
  • Last seen this week
Show/display entries next/prev except entries with lightswitch field active
1 votes

I got it by simply adding a condition where I was displaying my previous entry. {% if prevEntry %} {% if prevEntry.comingSoon %} {# if comingSoon field is active, hide the link #} {...

View answer
Invalid plugin: No plugin exists with the handle - Craft 3
1 votes

I had a similar error and found a solution! Let me explain what went wrong with my plugin. I downloaded a plugin locally, installed it and all was good. So I pushed all my files to the live site, ...

View answer
Create line breaks from text field
2 votes

I'm using Craft v3.1, I noticed that none of the answers worked for me. I only got it to work by placing raw before nl2br. This is what worked for me: {{ entry.customFieldName |raw|nl2br }}

View answer
How do I create a structure side navigation that will show active parent list-item and active child list-item
Accepted answer
2 votes

After a long search and lots of trial and error, I've found the perfect solution! This is how I created a dynamic structure navigation : parent/child (2 levels deep) with class="active" on the parent ...

View answer
How do I get different URL Format with parent/child structures & how do I display different templates?
Accepted answer
3 votes

To get different URL Format for parent & child pages, you need to go to the CP structure settings and edit the Entry URI Format. This is how your URI should look like: {% if level == 1 %}features/...

View answer
How can I add a dynamic "active" CSS class to the navigation on any given page?
2 votes

I know this post is old, but I'd like to share another technique I've been using for the past year. If you need a "hard-coded" navigation with no editing capabilities in the admin but still want ...

View answer
How to add a button or format style in Craft 3 CKEditor (rich text field)
Accepted answer
3 votes

I asked the question on the Slack channel & got my answer. Thank you @kenyonkowal. The best way to customize your rich text editor is to use Redactor instead of CKeditor. You need to add a ...

View answer
Price Formatting
2 votes

Just for future reference, Craft 3 is a little different with the currency filter. {{ entry.price|currency('CAD', stripZeros = true) }}

View answer
Dynamic Navigation with Condition to check slug
1 votes

Got it to work! I don't know why I made it so complicated in my head, but I ended up using the link id to match with the properties link. {% nav link in menu.all %} <li {% if craft.app.request....

View answer
How can I build a language switcher?
1 votes

I tried using the codes found here but couldn't get my 404 page to work without getting a twig_error page so I had to look for another language switcher. I found this code and just added in my css ....

View answer
Is there a maximum number of fields in a single matrix?
2 votes

Just like khalwat said ^^ If you're using MAMP like me, it is in your MAMP Application file MAMP/bin/php/PHP_version_your_using/conf/php.ini It was a combination of upping both memory_limit & ...

View answer