AnswerBun.com
  1. All Categories
  2. Craft CMS

Craft CMS : Recent Questions and Answers (Page 2)

Find answers to your questions about Craft CMS or help others by answering their Craft CMS questions.

Freeform user account creation form: handling prior user account exists

This is more or less a duplicate of a support ticket raised with Solspace. I’ve no doubt they will provide an answer but if anyone else has one feel free...

Asked on 11/05/2021

0 answer

Using multiple elementTypes in Element API

I am currently trying to create an autocomplete search with the element-api. I need results from two different elementTypes:Product::classEntry::classHow do I get results out of both elementTypes with only one...

Asked on 10/04/2021

1 answer

Sprig/Snaptcha CSRF issue/question

We have a site using Sprig and Snaptcha. One of our forms is always returning a 400 error "Unable to verify your data submission" which is usually a CSRF issue...

Asked on 10/04/2021

1 answer

DRY variable setting across templates (macro for variable?)

I have a need for something like the following:{# Template A #} {# Do X that sets variable x #} {# Do Y...

Asked on 10/03/2021

1 answer

Filter users: in group AND not in other group

Please could you advise on how to filter a user query, so that users from Group A are included, but not if they are also in Group B?{% set...

Asked on 10/01/2021 by user10961

1 answer

Create new tables with a custom module

Is it possible to create new tables in Craft when building custom modules or do you need to build a plugin for this? Modules don't have the special "install" migration....

Asked on 10/01/2021 by De Potter Bart

1 answer

How to differentiate EVENT_BEFORE_UPDATE_SUBSCRIPTION events in Commerce 2/3

I'm listening for various subscription events to send emails to members. Right now, I'm dealing with subscriptions where a renewal payment fails. I'm specifically listening for EVENT_BEFORE_UPDATE_SUBSCRIPTION. The problem is...

Asked on 10/01/2021

1 answer

Tax validation in Craft Commerce

We have a single page checkout where the items are selected and addressed added before going toa cart summary page showing amount owed and tax due. Was confused as...

Asked on 09/28/2021

1 answer

Determine if entry has a specific category

I am using a supertable (or matrix) to create rows.In each row, I have a Category Field. Multiple categories can be selected for each matrix row.As I loop...

Asked on 09/27/2021

1 answer

How do Twig filters interact with concatenated strings and shorthand "if-else" ( `var ? true : false` ) strings?

If I am outputting content like this:{{ entry.maxWidth|length ? entry.maxWidth ~ 'px' : 'unset' }}...and I want to apply the |raw filter to the output (nevermind if it makes...

Asked on 09/04/2021 by Sandwich

3 answer

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir