All Questions

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

Craft Commerce Delete Customers

Is there a way to delete the users that were created in the customers section? I made a site and generated multiple accounts for testing purposes, but now I have to deliver it and I don't want those ...
0
votes
0answers
5 views

Autogenerate complex Date / Count based Title

I might be pushing the limits of what's possible with Craft's autogenerated title capability, but in any event I'd like to figure out the best path to arrive at my goal. We have an internal parts ...
1
vote
1answer
3 views

Error accessing entry when title has special characters

I came across a weird bug with a title containing a "%" character not converting into a proper slug. So the website editor created the title "Berlenga: a 100% sustainable island" ...
0
votes
0answers
12 views

Error when trying to access 'variables' inside the PDF template in Craft Commerce

I'm trying to include the custom image field inside the PDF file of Craft Commerce. I added the following code to the module: use craft\commerce\events\PdfEvent; use craft\commerce\services\Pdfs; ...
0
votes
2answers
21 views

Load Entry via Ajax

I'm simply looking to onClick load an entries content via Ajax. Thought I see a lot of mixed answers here on SO, some referring to Element API, Creating a Plugin and GraphQL. Is there a simple way to ...
0
votes
0answers
10 views

How to validate email address entered during checkout on Craft Commerce?

The craft commerce templates have too many checkout steps for us in practice. So I have combined them. I have moved the email field into the Address page. But I can submit this form without ever ...
0
votes
0answers
11 views

Can't delete sub folders

I have an issue where I cannot permanently delete a sub-folder from the "Assets" section in the control panel. When I delete the sub-folder, it does delete, however after logging out or a ...
0
votes
0answers
19 views

How to create structured elements

I'm quite new here, so I hope this is not a too newbie question: I'm currently developing a plugin and want a similar view like in Entries > Structures, so I can sort and create children of my ...
0
votes
0answers
16 views

Barba.js (with gsap) 'leave' and 'enter' hooks not working in Craft 3 - same code works in WordPress

The below code (Barba/gsap) works as expected in WordPress, but in Craft 3 only the 'once' (i.e. not the 'leave' and 'enter') hooks fire. There are no errors or anything unusual in the Barba debug ...
1
vote
1answer
26 views

Open Entry in a Modal

Unsure how to go about doing this. I'm looking to open a related entry in a modal on the same page. In an area, I have a list of houses. On click, I would like the user to open a modal and load the ...
0
votes
0answers
27 views

Troubleshooting General Slowness?

We have a Global page that has about 10 tabs with a bunch of fields each. The thing takes between 50 and 80 seconds to load. The debugger shows that it fires off over 9000 events and makes almost 900 ...
0
votes
0answers
13 views

Can control panel date display always be numeric?

I understand the display of entries' postDate, etc., in the control panel can be localized, but I'm wondering if it's possible to get rid of the "yesterday" and "today" designators,...
0
votes
1answer
13 views

FeedMe + Google Maps plugin Address fields missing

Just upgraded to GoogleMaps plugin (from SmartMap) and trying to replicate FeedMe feeds. When I go to assign field -> feed element, I see my regular entry field I don't see the address sub fields, ...
0
votes
0answers
12 views

Has anyone experienced any cURL error 28: timeout errors using php 7.4 and craft 3.5?

So the site was working on a new server. But over night I am now seeing the site hang and not load. When it does give an error it gives a cURL error 28 with connection timed out on various resources ...
1
vote
3answers
37 views

What is the correct way to format a module controller action URL?

Consider the following Craft 3 example module structure: modules/ businesslogic/ controllers/ExampleController.php BusinessLogic.php ...and consider the following action in ...
1
vote
1answer
10 views

How to hide the assets section of the control panel to specific user groups?

I need to hide the assets section of the control panel to a given user group. Changing the group permissions to prevent them from viewing all asset volumes also prevents them from uploading assets in ...
1
vote
1answer
27 views

User field names?

The online documentation states: Each user has an email address and username by default, and optional fields for a name, photo, and password. Excuse the dumb question, but where do I find the what ...
1
vote
1answer
37 views

Accessing array/object attributes in Twig

There are three methods for that: object.attribute object['attribute'] attr(object, 'attribute') How are these different from each other?
0
votes
0answers
17 views

Avoid Camel Case for S3 VolumeFolder

I have an S3 volume with a row in the volumefolders table that uses camel case. This is not appropriate for our S3 configuration. Can I just update the row to downcase the name and path? Is it ...
1
vote
2answers
39 views

Multiple instances of Craft in same hosting account root

I want to have multiple instances of Craft, ideally running inside the same cPanel account root. I note from the doc on Directory structure that there are separate config path variables that can be ...
0
votes
0answers
19 views

Listening for Change at Entry Save

I want to send an email if/when an entry is saved with a lightswitch switched on after previously being off. I have the below code in my plugin's init file, but I don't know how to check for the ...
0
votes
0answers
31 views

Contact form returning “Error 400: Bad Request: Request missing required param” — how can I best narrow down the issue?

I'm sort of stumped in troubleshooting the following problem that I'm having with the Contact Form. Below I'll list the code, some of the attributes of the code that may be causing this issue, and the ...
0
votes
0answers
11 views

Craft CMS Graphql orderBy random - pagination?

How does pagination work with orderBy: 'RAND()' queries? I've setup a page that loads assets on scroll. If I'm ordering by random, how does offset:2 work? Is each query a new random selection from all ...
1
vote
1answer
21 views

Passing multiple arguments to a macro?

I have a link on a website that i'd like to set a class of active on, based on different segments. {% macro is_acitve(segment) %} {% if craft.app.request.getSegment(2) == segment %}active{% endif %...
0
votes
1answer
23 views

Output javascript inside twig variable

I am using the Enupal Stripe Payments plugin to pass line items to Stripe. The line items get passed in an array. I want to use a javascript cart to hold the items in local storage, reformat that and ...
1
vote
1answer
15 views

Display Count of Entries posted today

I'm trying to display a notification badge on how many new entries were posted today only. But I cannot get the following to work. {% set timeAgo = now|dateModify('today') %} {% set ...
1
vote
1answer
24 views

Google Maps plugin - How to trigger an info window

I'm migrating Smart Map over to the Google Maps plugin, and I want to open a popup on button click. But it seems there is no JS method available to open an info window. Here's how it was done in Smart ...
1
vote
1answer
31 views

Template not found: $PRIMARY_SITE_URL/$PRIMARY_SITE_URL/blog/this-is-my-blog

Very new to craft CMS, recently just installed XAMPP with php 7 and craft 3 and followed the getting started tutorial from Craft CMS. Then when I try to preview or open the page created from the ...
1
vote
1answer
14 views

Front End Entry Form - Proper Syntax for Custom Fields

I'm working on a front-end entry form with custom text input fields. From the Entry Form knowledgebase docs, I read "Any custom field handles must be provided in a fields[] array like body is ...
1
vote
1answer
17 views

How can I make an entries query based on currentUser is author or relatedTo currentUser

My project requires a notifications area. I want to list all notification entries that were created by currentUser or sent to currentUser. I can do created by = craft.entries().section('thename')....
1
vote
1answer
14 views

Change password messaging per site?

I have several sites running under one Craft install. Two of them are for our internal use, and one is public-facing. On the public-facing site, I need to provide a reset password function. When the ...
0
votes
0answers
26 views

Entry URLs are not returning URL with locale in the path

I set up 2 sites (locally) running Craft 3.6.7: English (Handle: english, Base URL: '/en/') German (Handle: german, Base URL: '/de/') I've made a blog section that is enabled for both languages with ...
0
votes
0answers
11 views

Config baseUrl / assetBasePath

I've been away from using Craft (and web development in general) for a while now. I'm having trouble getting the assets paths working for a site in my config, I gather things have changed since I last ...
1
vote
1answer
16 views

Feed Me Cron Job failing on 123-reg hosting

I'm trying to set up a cron job to run the feed me direct feed url in 123-reg hosting. The command they are saying to use is: /usr/local/bin/php /home/username/public_html/index.php?p=actions/feed-me/...
0
votes
0answers
12 views

How to apply an Image Transform on output from plugin PDF Transform

In an attempt to autogenerate PDF Thumbnails I found this Plugin, PDF Transform. The plugin works fine, but I'm trying to figure out how to apply a Craft Image Transform to the results. I'll preface ...
1
vote
3answers
30 views

How to require stronger passwords?

I am having a real hard time understanding why there is not a way to control the password strength of a front-end user registration form. With Craft 3, are there no settings anywhere to control this? ...
1
vote
1answer
25 views

Best Approach to all unique groups of users to edit unique groups of entries in 1 channel

I've got a request to let front end users edit entries in 1 section, but only if the entries are related to their user group - so different users will have ability edit a different subset of entries ...
0
votes
0answers
10 views

Different unix users for Craft config and Craft process

I want to configure Craft to run as user craftcms and have configuration owner craftowner. The purpose is to make configuration read-only to craftcms, so that there can be no changes to the ...
1
vote
1answer
22 views

Commerce email receipt not sent after order, but manual Send Email in Order screen works

I have placed a successful order in Commerce and it's settings have an email setup to send an email to the customer and use the example special/receipt email. But the receipt email is not sent once ...
0
votes
0answers
14 views

Eager load entries from another site in a Matrix block

I'm having trouble to get Eager Loading to work with an entries field that can select entries from another site in a multi-site setup. We're using a Matrix content-builder setup. Different kinds of ...
0
votes
0answers
15 views

Triggering different webhook when product is updated by Feed Me

I have two different webhooks that need to run when a product is saved. Webhook 1 should only run after manually saving the product Webhook 2 should only run after Feed Me saves the product Is ...
0
votes
0answers
18 views

400 bad request (“Unable to verify your data submission.”) when Adding product to cart

When a user tries to add something into the cart the following error appears: 400 bad request ("Unable to verify your data submission.") 2021-02-23 09:08:42 [-][-][...
0
votes
0answers
11 views

Need help with cookie logic

I'm creating a very basic message board type of thing and want to show new posts since as user's last visit. I'm looking to use Cookies, but need some help with the logic. Should I be setting a cookie ...
0
votes
0answers
9 views

Batch check date and alter entries

Good Evening. Im looking for a way to regularly check a full section of entries to see if a date has been passed. If it has I want to place a checkbox marker within that entry. Has anyone come ...
2
votes
1answer
25 views

Plugin record no dateUpdated and uid

I'm building a small analytics plugin and as such, I don't need the dateUpdated and uid columns in my records, but I dind't find any way of disabling them. Currently I have tried: Not setting them in ...
1
vote
1answer
37 views

How do you insert the site name into a default asset path?

Multisite question.... how do I output the site into the assets path? currentSite won't work because its the admin panel, so the current site is always the default site. Using the below, I will always ...
0
votes
0answers
22 views

How to convert custom plugins to custom modules

I have 3 custom plugins that we had someone develop for us a while ago and I would like to convert them to custom modules. Since plugins are based upon modules, I was hoping there might be a cookbook ...
0
votes
0answers
9 views

JS POST setting new password with save-user re-submission not working with returned CSRF token

I have an AJAX form that sets a new password (using users/save-user) for the current logged in user (not an admin). It works for the first time but when I re-submit with the new token, a 400 Bad ...
1
vote
1answer
24 views

Trouble running craft with docker

I'm trying to set up craft to run with the docker images provided here. When I run docker-compose build, it gets through a few lines in the Dockerfile and then stops with an invalid reference error ...
1
vote
1answer
26 views

Autogenerated PDF Thumbnail using PDFThumb in a Matrix Field

I would like to autogenerate a thumbnail of PDF's, and from this question I found the plugin PDFThumb. The problem I'm running into is I'm relatively new to Craft, and I can't seem to figure out how ...

15 30 50 per page
1
2 3 4 5
258