Rosana Ruiz
  • Member for 4 years, 3 months
  • Last seen more than a month ago
How to get a URL segment
6 votes

There's also another way that would be more consistent, in case your segments are not always in the same segments array position. You'd make your routes to match a certain mask in the routes.php file ...

View answer
Grouping entries by title in Craft 3
Accepted answer
3 votes

I ended up using a combination of solutions provided: {% set groupedShops = craft.entries.section('shops').type('shops') .order('title').all() | group("title|...

View answer
Visual editor for Craft 3
2 votes

Yes, you will have to define the elements that the client will manage for a page. If you watch the video in craftcms.com landing page you can see how that would look like. The elements on the left ...

View answer
How to create website using Craft CMS
2 votes

You probably don't have any templates. You first need to have templates that render the info you are editing in the admin panel. In this section, templates in CraftCMS are introduced, you may also ...

View answer
Using the coupon code from Craft Commerce site
Accepted answer
2 votes

I had this problem and the cause was that I was doing this in the base template: {% set cart = craft.commerce.carts.cart %} When I should be doing the following: {% if cart is not defined %} {% ...

View answer
Is it possible to add a Section, Entries in basic/simple HTML page instead of Twig template?
1 votes

Yes, it is possible, but it generally doesn't make much sense because the purpose of CraftCMS, is to allow anybody to easily change the content of what is in the template without having to use actual ...

View answer
Translate Section name
Accepted answer
1 votes

I haven't found how to do it through the UI but it's possible to add the section names in translation files as keys and then translate them in the views using {{ "key_name" | translate }}. You must ...

View answer