All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Help with understanding Controller routing

I'm building a module, and all is going well. I can access all "routes" except actionIndex. I have a controller named SendController.php And, I can access the method below using "...
0
votes
0answers
5 views

Feed Me accessing resource

Got a Feed Me feed set up to scrape a CSV that is being added to the server via FTP daily. The FTP is via a separate user account and the folder the file is being saved to is accessed via a symlink on ...
1
vote
1answer
17 views

Filter entries based multiple category groups

This is related with Split categories by levels / List categories merged by name which I explain more on detail there, after that I take the suggestion of create separate category groups, so: I have ...
1
vote
1answer
18 views

Supertable bilingual (multi-site)

I want to save a supertable with different infos on two different siteId of an entry. It works fine with all the other fields i'm using: the value is saved separately to each different language. But ...
0
votes
1answer
47 views

Project config issues with multi-node clusters?

We have experienced issues with Craft updates since the project config feature was released. Typically we run a multi-node application cluster that auto-scales up/down as needed. The current theory on ...
1
vote
2answers
21 views

Applying several discounts for amount range (> 100$ -> 5%, > 200$ -> 10%)

i added two discounts: if the amount in the cart is greater than 100$ a discount of 5% is applied. if the amount in the cart is greater than 200$ a discount of 10% is applied. if i have a cart of ...
1
vote
1answer
16 views

Getting all images urls and help with numbers field

I have two problems with CraftCMS :( First one - I want to make images gallery and now using something like this: {% set image = entry.car_photos[0] %} {% if image %}<div class="...
0
votes
0answers
14 views

Solution to update status of submission via link in confirmation mail

what would be the most simple way to let senders confirm their request / update the status of their submission with the click on a confirmation-link in an e-mail? Is it possible without a plugin or ...
1
vote
1answer
38 views

Send Customer Email based on Product Bought

I've discovered ways to do this with a single email template and lots of logic but I'm considering purchasing Sprout Email cause of all the features we would gain. Basically: I need to know if/how ...
1
vote
1answer
37 views

'and' & 'or' in the same entry query

I've been attempting to create an entry query that queries the same custom field twice. Basically I want to check if a custom field is between 2 numbers OR if it is empty. Currently I'm using this to ...
0
votes
0answers
9 views

Feed Me not updating the Redactor fields when checking for updates

Feed Me runs as expected and looks for updates but the Redactor fields are left out of the update. I don't get errors. What am I missing?
1
vote
2answers
53 views

Adding second option on payment-method (buying without paying, getting physical invoice with order (pay on account))

I am using the Craft Commerce templates as a starter, haven't altered that much yet. On the payment-method page, I have a gateway for credit card/Paypal, etc. via a plugin, which works fine. I would ...
2
votes
1answer
36 views

Adding column to CP entries without writing plugin?

Is there a way to add a column to the control panel display of entries? I would strongly prefer to not write a plug-in for this. The contents in the column would be nothing more than a button that ...
0
votes
1answer
15 views

craft.matrixBlocks() by section

Trying to grab the total count of matrix blocks that belong to a section. Looks like there is no section parameter for craft.matrixBlocks(). Not sure as to why that is. Anyone know of another way that ...
0
votes
0answers
18 views

Craft CMS Headless - Preview mode

I'm new on craft and I'm using headless mode with a nextJs frontend application. I've tried to configure the preview mode to load the frontend, but I didn't find how to do that. The frontend ...
0
votes
0answers
11 views

Assets uploaded only to temp folder (first upload only)

I have a Craft installation (v3.7.4) with an Amazon S3 plugin (v1.2.12). I have an asset field configured to upload to an Amazon S3 volume. IAM roles are properly configured, files get uploaded to S3 -...
0
votes
0answers
9 views

Craft CMS Freeform unable to override value of invisible/hidden field

In my control panel, I have a hidden field type with name 'Payment Amount' and handle name 'paymentAmount'. I am trying to modify its value to be the same as another field of the same form called '...
1
vote
1answer
23 views

UrlManager::EVENT_REGISTER_CP_URL_RULES event not firing in custom plugin

I'm working on building out a custom plugin for Craft 3 to create a new element type called Events. Following the Craft docs for creating edit pages, I hit the point where I'm trying to register my ...
1
vote
1answer
14 views

Craft Script: Environment variable GLOBAL_DB_DRIVER was neither 'mysql' nor 'pgsql'

I keep getting the error Environment variable GLOBAL_DB_DRIVER was neither 'mysql' nor 'pgsql'. Aborting. when trying to pull the database from the production server to staging using Craft Script. I ...
1
vote
1answer
16 views

Persist session from frontend login form to craft dashboard on headless install

Im im using craft as a headless CMS to power a Nuxt frontend. I have a situation where i need the user to login on the frontend and then be redirected to a url within the craft CMS admin. My question ...
6
votes
1answer
135 views

How do we distinguish between a 'New' and 'Updated' Live Entry using the craft\elements\Entry::EVENT_AFTER_SAVE event?

I can't decide if I'm missing something or this should be a bug. With the recent changes to Drafts/Revisions in Craft 3.7 it's not clear to me how to distinguish between New and Updated Entries using ...
1
vote
1answer
22 views

Swiper breaks when using Sprig

Not sure if this is the right place to ask my question, but I hope someone can help me. I am using Sprig to re-render some cards based on some parameters (with a dropdown filter). These cards also use ...
1
vote
1answer
37 views

Can't get a Single

I am trying to get a Single. But it doesn't seem to work. Does anyone know what I am doing wrong? I already double checked the slug, and getting normal channels is also no problem. This is the code I ...
1
vote
2answers
27 views

Display entry data dynamicly in textfield

i have some data in my entry like productnames "Nike", "Puma" etc. which are headings i diplay in my template. {{ productnames1 }} "some text the contenteditor maybe wants do add" ...
2
votes
1answer
27 views

Fixing a YouTube regex in a replace filter

I need to take the dominant YouTube URL schemas and convert them into a YouTube embed URL of the form: https://www.youtube.com/embed/VIDEOID I know there are technically loads of possible YouTube URL ...
0
votes
0answers
18 views

HTTP 404 – Not Found – yii\web\NotFoundHttpException

New to Craft and following the tutorial to Create the blog. When trying to browse the created blog page get 404 error below. HTTP 404 – Not Found – yii\web\NotFoundHttpException Template not found: ...
0
votes
0answers
12 views

Is there a way to restore a deleted user?

Their content wasn't assigned to someone else before deletion so all of the pages are gone.
0
votes
0answers
9 views

Is there a way to preview the autoresponder with custom language without charging a test transaction?

I am creating a donation form that has custom language inserted into an autoresponder email. I'd like to preview the autoresponder so that I can see if the custom language is getting cut off. Is there ...
1
vote
1answer
19 views

Element API - lightswitch option to exclude an entry from a feed

I'm trying to exclude an entry based on the state of a lightswitch field in the entry itself. If true, exclude the entry from the feed, if false include the entry.
1
vote
1answer
15 views

input fields in getpaymentformhtml auto click out of card holder information

To reproduce issue: <label for="card-element"> {{stripeGateway.getPaymentFormHtml({})|raw}} </label> Then whenever I click either the First Name or Last Name input field my ...
2
votes
2answers
16 views

How to reference a specific Sprout Form by handle?

I need to reference specific entries from my Sprout Form so that I can grab the data the user uploaded through that form to use to make changes in the database. I am stuck here with this error ...
1
vote
1answer
21 views

Block access to /admin on secondary sites

I'm not clear on how to block access to the control panel at: secondDomain.com/admin secondDomain.com/admin/login I can use .htaccess or Craft's config.php. I want folks to get an ugly 'access denied' ...
0
votes
0answers
11 views

Handling CSRF errors gracefully in forms

I have a question regarding the handling of CSRF errors. By default, a CSRF error will result in a very basic / generic error screen. This is problematic for CSRF-protected forms since it interupts ...
1
vote
1answer
27 views

Commerce 3 Subscription form

I'm trying to make a 2-step subscription process. Where someone clicks 'subscribe' and it takes them to a new page. Free trial button goes to url('subscribe?plan=' ~ plan.uid) I then retrieve that on ...
0
votes
0answers
14 views

How do I write a GraphQL query to search through sub-entries/entries as fields and return the whole entry?

So I have a fairly complex section structure that (on an Entry Type) has a matrix field that contains entries as fields(sub-entry) within a blocktype. I'd like to write a GraphQL query such that when ...
1
vote
1answer
20 views

Cropping with NY Studio Image Optimize Plugin

Please forgive me if this is an idiot question. How do I obtain 'crop' and 'scale' with Image Optimize?? I would like a page of equally sized images (height & width) which are cropped from the ...
0
votes
0answers
13 views

User mapping with Socializer plugin

I'm currently working on Instagram login part of my project with Socializer plugin for Craft CMS. I went through docs and did everything that was described there. I have app on facebook for developers,...
1
vote
1answer
54 views

Updating to 3.7 issue (applying m210602_111300_project_config_names_in_config)

Probably my fault — I’m generally OK with this stuff until something goes wrong — but… I updated a local install (MAMP PRO) to Craft 3.7 by clicking that lovely 'update' button. And it worked fine, ...
2
votes
3answers
125 views

SSL certificate for Docker container in Nitro 2 has expired: what to do?

I created a Docker container 3 months ago. I’ve only just come back to it and find its SSL certificate has expired. I can find nothing on what is best to do. Is it best to reissue the certificate? If ...
0
votes
0answers
38 views

I need help with trying to put craft on a staging subdomain

Hi can anyone tell me if these settings are correct? All I am seeing is a blank page on the front end and the admin url. This is the structure I have locally and it all works fine: /Root - .env ...
1
vote
1answer
34 views

Header may not contain more than a single header, new line detected error with `redirect` tag

I have this in a template: {% import "_helpers/macros" as macros %} {% set redirectUrl = macros.testRelatedReview(entry) %} {% redirect redirectUrl 301 %} The macro returns an entry URL. ...
1
vote
2answers
21 views

Get System Activation email link

On my site a type of user can add new clients and I wanted to automate the activation email, so that when a new user is added then the client will get the activation email. But I'm getting an error ...
0
votes
0answers
9 views

Matrix block “default asset location” unexpected behaviour

I have a matrix block containing an image field. The "default asset location" is configured with projects/{owner.slug}. I expect this to result in the asset being placed in something like ...
1
vote
1answer
37 views

How to build a custom fieldtype containing multiple nested groups of text and dropdown pairs?

I'm working on what I thought would be a relatively simple plugin; a custom fieldtype that would have 8 "sub-groups", each of which would consist of a numeric text field and a dropdown field ...
0
votes
0answers
27 views

craft commerce “Invalid payment or order. Please Review.” on hasFlash('error')

Just trying to make a merchandise web shop with Craft CMS 3 and Craft Commerce 3. However, whenever payment is attempted to be made for merchandise on checkout page with commerce/payments/pay, there ...
0
votes
0answers
28 views

How to print variables inside a PHP Event?

I'm trying to work with the Sprout Forms events to grab a variable from the form and add it to a filename also uploaded through the same form. I am extremely stuck and so far I can't even confirm ...
0
votes
0answers
17 views

How to add an attribute to the HTML Purifier definition

I'm a little bit over my head trying to configure HTML purifier for my needs. I asked this question in stackoverflow and it seems that I might need to do something like this: $config = ...
1
vote
1answer
14 views

Everything comes null when I try to filter entries by category - Craftcms 3

There's an issue when I filtering by categories but everything comes null, I was debugging code but all the entries has the same problem! But I don't know why does this happens? The entry comes well ...
1
vote
1answer
23 views

What is the best way to create a designed Facebook feed on Craft CMS website?

Hi I'm looking for recommendations as to how to create a designed Facebook feed on the home page of a Craft CMS website please? I'm not a big fan of them but the client has requested it and it's a ...
0
votes
0answers
17 views

Importing fields from ExpressionEngine 2 to Craft

sorry if this is posted somewhere. I couldn't find it. I'm trying to export a site from EE2 to Craft 3. All the tutorials I've found only export/import the pages and it seems like you have to create ...

15 30 50 per page
1
2 3 4 5
264