All Questions

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

Craft 5 Update: Database Views for Content Table No Longer Functioning

I have a custom module on my Craft CMS site that uses a database view by joining the content table and user table. This view consolidates all user details into one place. However, with the Craft CMS 5 ...
PCS's user avatar
  • 1
0 votes
0 answers
19 views

Custom HTML tag removed from ckEditor5 on save

I've created a custom ckeditor5 plugin. The plugin adds a new button to ckeditor5 toolbar to add a custom HTML tag with some data. Switching between view and model in ckeditor works fine. But from ...
user3086053's user avatar
0 votes
0 answers
15 views

Change product / variant price with custom module or plugin

I have recently upgraded a webshop to Craft 5 and Commerce 5. All products only have 1 variant. Prices are recalculated based on the exchange rates of gold and silver. Since Commerce 5 does not ...
Matthias's user avatar
  • 301
1 vote
1 answer
14 views

How to schedule custom command that executes every hour

I created a custom command to print logs. Now I want to schedule that command to execute every hour. Can any one give me a step-by-step process to achieve that? I am new to craft CMS. Craft CMS ...
Dipesh C's user avatar
1 vote
2 answers
36 views

How can I add an element with an image to a section from the site?

please tell me how to add an entry that contains an image to the desired section. I use Craft CMS 4.9.6. At the moment, I have a form on my website: <form method="POST"> {{ ...
Dimi's user avatar
  • 303
1 vote
1 answer
23 views

Section: dynamic Entry URI Format

My solution works, but I seem to have some caching issues ... so I'm unsure weather my solution is useful or not? Entry URI Format of Section (Channel): {{craft.entries.id(530).one().uri}}/{slug} ...
Marc 's user avatar
  • 194
1 vote
1 answer
39 views

References to static assets placed under subfolders

We are exploring best practice for referencing subdirectory js and css in html path references. See below. https://dummy.jp/about/ directory structure looks like this. ┣ craft/ ┃ ┣ various_dirs/ ┃ ┗ ...
shin_develop's user avatar
0 votes
0 answers
16 views

5.x - Matrix Frontend Form Submissions

Has anyone found a way to create matrix field submissions with a frontend form? The docs for 5.x mention this section hasn't been updated and that the functionality has changed drastically. Craft 5.x -...
Jared Budlong's user avatar
1 vote
1 answer
30 views

Craft site shows "service unavailable" - Admin site shows "craft not installed yet"

I'm in a bit of jam here. Our Craft v3 site went down overnight, seeminly for no reason, and is just showing "Service Unavailable - Our site is temporarily unavailable. Please try again later.&...
RobinH's user avatar
  • 43
1 vote
1 answer
21 views

relatedTo craft 5 nested matrix entires

Im trying to query a list of matrix entries that have a related field but it doesn't work after updating to craft 5. Note that 'category' is not category field type, its a regular structured entry ...
Tibbe's user avatar
  • 131
1 vote
1 answer
24 views

Problem with recursive macro descendants in craft 5

I'm trying to display my nested comments. I've created 7 test-comments: ID Parent ID Comment Descendants Count Level 785 N/A test 1 6 1 788 785 test 2 ...
smaniren's user avatar
0 votes
0 answers
22 views

Site not found error when running Craft CMS behind a loadbalancer in a container

I've been asked to deploy a Craft instance via an image in Azure Kubernetes Service, and I'm having a bit of an issue getting the site up and running - we're seeing a "Site Not Found" ...
Zhaph - Ben Duguid's user avatar
1 vote
2 answers
55 views

How to create Twig extension in Craft CMS 5

I am new to Craft CMS and Yii2 but I'm experienced with PHP a lot. I'd like to write a custom Twig function (extension) returning a part of a file. For example something like: {{ craft.myplugin....
Martin Ille's user avatar
0 votes
0 answers
20 views

Custom Dropdown/Selectize Field Type

This is a question in Craft 5. I want to create a field type to pull in all of the Sections and display them in a Dropdown/Selectize Field. I've got that showing ok with this: protected function ...
supazu's user avatar
  • 526
1 vote
1 answer
30 views

Not able to query by id

I don't get, how i should query for an entry by ID in Craft CMS 5. I have an entry in my "Article Comments" section: The Section contains the entry type "Comments Content". The ...
smaniren's user avatar
0 votes
0 answers
9 views

How to search additional field in single-page app using GraphQL

I have taken over a Craft CMS project from a previous developer, and I'm having trouble implementing a new simple feature on a single-page app, which is to have search queries match recipe ingredients ...
cjhdev82's user avatar
1 vote
1 answer
15 views

Reduce Api2PDF requests and store the first visit generated file

I have a page that performs a merge of a series of PDF files through the integration of Api2pdf Craft Plugin in a modified and working version for Craft 4. The problem is that the file gets generated ...
Milksamsa's user avatar
  • 145
1 vote
2 answers
30 views

Craft 4.8.0 : Hide some entries to a group of user

I have somes entries : POI-1 POI-2 POI-3 I have two groups of users : Group-1 Group-2 Needs : The Group-1 can edit only POI-1 The Group-2 can edit only POI-2 and POI-3 I see that I can set this ...
emilie zawadzki's user avatar
0 votes
0 answers
23 views

500 Status error with Devmode Off

My site loads perfectly fine when I have devMode set to true, but when I keep everything the same except turning devMode to false, it returns a 500 error (probably a server issue). I am really at a ...
Mandy's user avatar
  • 1
0 votes
1 answer
48 views

EVENT_REGISTER_SITE_URL_RULES not working

I have created a custom module and registered a route like this. EVENT::on( UrlManager::class, UrlManager::EVENT_REGISTER_SITE_URL_RULES, function (...
Matthias's user avatar
  • 301
0 votes
0 answers
30 views

Craft CMS 5 Headless live preview using nuxt not working

I'm not understanding how the preview mode exactly works trough graphql queries for Craft CMS headless. Using Craft CMS 5. From what I read, all I have to do is add the 'token' in the headers of the ...
mtsfrstd's user avatar
1 vote
1 answer
26 views

Group matrix blocks by date

I'm trying to group events in a matrix field by day. Each date has a title and start and end time. I would like events for today, tomorrow and any dates beyond grouped separately. This is what I have ...
univers0's user avatar
1 vote
1 answer
23 views

Change email transport settings based on order site

I've been trying to send Commerce emails via two different domains but I'm having very little luck getting it working fully. In app.php I have something like this: 'mailer' => function() { $...
Jamie's user avatar
  • 121
0 votes
0 answers
17 views

Filter GraphQL Response Based on Matrix Entry Type

In Craft 5, we now have a few Entry types with Matrix fields that can nest several other Entry types, or none. I'm struggling to work out a way to limit the returned results based on the content of ...
theAdhocracy's user avatar
1 vote
1 answer
30 views

How to disable X-Rewrite-URL Header in Craft CMS 3?

I'm trying to disable the X-Rewrite-URL header from my Craft CMS site. I have already tried disabling it via the secureHeaders setting in the general settings, but it still doesn't work. Remove 'X-...
Sall's user avatar
  • 11
1 vote
1 answer
20 views

getBodyParam('email') is empty on live server

Trying to debug a form issue which is only happening on a live server (it works on our local environments). The form makes a fetch request (using Javascript) to a route in routes.php which goes to a ...
Jaytrix's user avatar
  • 337
0 votes
0 answers
30 views

How to clear conditional field values when hidden?

In Craft CMS 5, I have several conditional fields that display or hide based on the value of a Category field (single selection). Depending on the selected category, different fields appear: Date, ...
Romain P.'s user avatar
  • 1,852
0 votes
0 answers
13 views

Dynamically Load Formie Entry Field Options

I have a Formie multi-page form that has an Entry field set to display as radio buttons. This entry radio field is populated with "Clinic" entries, which are channel type entries. Each ...
BrettGfx's user avatar
0 votes
0 answers
18 views

$0 Stripe Subscriptions

Has anyone successfully figured out how to do a $0 stripe subscription on commerce? Works fine in stripe but the commerce plugin requires a payment source and errors if you provide the payment source ...
cherrykoda's user avatar
  • 1,114
1 vote
1 answer
43 views

How to run the queue via CronJob?

I am Using Craft CMS 5.x and the Formie plugin. Form submissions are entered into the Craft CMS queue. When I enter the control panel, the queue runs and notification mails for form submissions are ...
flip's user avatar
  • 149
0 votes
0 answers
18 views

Admin: "Add New Entry" Slide Out Fails - Cannot create new entry

Craft 4.9.2: Slide out creates draft when fields are completed. "Create Entry" results in toast that indicates a server error. No visible error in the logs but console error is: GET https://...
Jason McKinney's user avatar
1 vote
1 answer
22 views

Why am I seeing a version compatibility error after updating Craft Commerce to 4.6.0?

I recently updated Craft Commerce to version 4.6.0, but now whenever I run any Craft commands or navigate to site.com/admin, I encounter the following error: You need to be on at least Craft Commerce ...
Mostafa Soufi's user avatar
1 vote
1 answer
37 views

Setup Craft CMS 5 webroot to htdocs

For a Craft CMS 5 project installed with ddev, how can we make the webroot folder become /htdocs instead of /web? Is this something to be reconfigured after installation, or does it need to be done ...
Romain P.'s user avatar
  • 1,852
1 vote
1 answer
255 views

Redactor to CKEditor Migration

Since Redactor is abandoned I've moved to CKEditor. There are plenty of entries with external links that are target blank with rel nofollow added. This has been altered (console command used as ...
Mark H.'s user avatar
  • 401
1 vote
1 answer
29 views

Formie or Freeform include current page title in submissions and email notifications

I have not decided on which particular plugin to use yet, but i've been all over the docs for both Freeform and Formie trying to find a way to 'capture' the current page title and include it in both ...
Martin's user avatar
  • 21
1 vote
1 answer
44 views

/cpresources in a cloud storage

is it possible to have /cpresources in a cloud storage like Azure BLOB storage and that Craft writes them to the cloud when needed? Thanks!
Matthias Redl-Mann's user avatar
1 vote
1 answer
28 views

How to get all Matrix block fields in a templated table of all fields

I want to produce a templated table of all fields, including Matrix block fields which belong to their parent Matrix field. I've been scratching around the Craft 4 class reference and getting nowhere. ...
Jonathan Schofield's user avatar
1 vote
2 answers
76 views

Recreate {% cache %} content without clearing first

We have a setup where we use Craft's {% cache %} tag to improve performance of certain computing-cost-intensive pages. The expected way to do this is by using the {% cache %} tage and probably improve ...
Matthias Redl-Mann's user avatar
0 votes
0 answers
18 views

Get events between specific date range

I am building a module that shows the available days in the next month based on the events in the Calendar Plugin. $criteria = Event::find(); $criteria->calendarId = $calendarId; $criteria->...
Matthias's user avatar
  • 301
1 vote
1 answer
16 views

How to get info about an asset via cli?

I have assets configured via azure blob storage and sometimes one of 2 issues is happening : 01. The asset url remains as /en/actions/assets/generate-transform?transformId=45 In this case i would ...
MRARGT's user avatar
  • 11
1 vote
2 answers
45 views

Updated plugins keep showing in the control panel and command line

In Craft CMS 4.8.10 I have updated my plugins via command-line and in the control panel and they both come back with the updates successful. But in the control panel the updates continue to appear ...
bhackett's user avatar
  • 147
1 vote
1 answer
27 views

Multi language: Multiple tree and single tree?

In TYPO3 (https://typo3.org/), there are two approaches for multilingual websites known as the "One-Tree" and "Multiple-Trees" approach. The Multiple-Trees approach is no problem ...
Marc 's user avatar
  • 194
1 vote
1 answer
85 views

Craft 5 Matrix Field have URL?

I have a staff Structure Section with the intro page (Level 1) and individual staff members at (Level 2) as each staff member has their own page /staff/joe-bloggs. I was wondering if it's possible to ...
Martin's user avatar
  • 21
0 votes
0 answers
8 views

How can I list all entries that have a populated Freeform Form field?

The Freeform Form field can either be a direct custom field of the entry, or it may be inside a Matrix field's blocks or be a Super Table field. Ideally, I'd like to do this performantly, and either ...
Sandwich's user avatar
  • 636
2 votes
1 answer
49 views

Get all revisions of an entry on front end / with twig

I'm basically trying to get what has been answered for this questions. This code doesn't seem to work any longer since it has been solved about 8 years ago. Is there a way to get a list of all the ...
obs's user avatar
  • 551
1 vote
0 answers
23 views

How to work with structure nested entries on live-preview?

Can I get some guidance/help on how to make work structure section type on the live preview please? Everything is fine when the section is a single or a channel. I am working on a few projects, some ...
Adam Fernandez's user avatar
2 votes
1 answer
27 views

Can I empty the storage folder when migrating a Craft CMS site?

I am moving a Craft CMS to new webhost and followed this instruction. I read in another Stackoverflow post and also on this page that the /storage folder mainly contains cached, temporary files. Is it ...
flip's user avatar
  • 149
2 votes
1 answer
113 views

ckEditor and line breaks

Here's something about line breaks I don't understand. I've recently upgraded from Redactor to ckEditor on a project that accepts public submissions to a job board. These jobs are almost always copy/...
Mosswalker's user avatar
2 votes
1 answer
60 views

How to inform the front-end user that their session is about to expire?

I have a Craft CMS 4 with forms for logged-in users. Some users may keep certain pages open in their browsers. Sometimes, users submit the form while their session has expired (after one hour, in this ...
Romain P.'s user avatar
  • 1,852
0 votes
0 answers
14 views

Order Matrix Block in Control Panel by Date Field

Is it possible for the individual entries within a matrix field in the Control Panel to appear in the order of a date field? I have found here information on how the entries are sorted after saving ...
buckdanny's user avatar
  • 207

15 30 50 per page
1
2 3 4 5
289