All Questions

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

Is it possible to invalidate the GraphQL cache for a single query?

I have a pretty large website that benefits greatly from the GraphQL cache, but it seems like it's a single site-wide config in the Craft config/app.php file. I would need to invalidate the cache from ...
2
votes
1answer
18 views

Custom Field layouts

So many times im at odds with the layout of Craft Fields in the CMS, where from a usability and user interaction stand point I feel the layout can be way better and even mimic the front end result. ...
0
votes
0answers
11 views

unvote or change the user's vote in Poll plugin by 24hours media

I am using the Poll plugin by 24 Hours Media and its working fine on my end but I would like to ask how the user can unvote or change their vote in the template/front-end. Thank you.
1
vote
1answer
25 views

Sharing data between Multiple Craft 3 CMS instances

I am not asking about multi-site. Rather, I am curious if there is existing support for "sharing" data across unique Craft 3 installs. For instance, let's say he have 2 Craft 3 installs ...
1
vote
1answer
11 views

Unable to resolve the request "contactForm/sendMessage"

I'm getting the following error and stack trace when submitting a form on a CraftCMS-3.7 website... HTTP 404 – Not Found – yii\web\NotFoundHttpException Page not found. ↵ Caused by: Invalid Route – ...
1
vote
1answer
25 views

The craft way of creating fields through code?

so I am new to Craft CMS, and would like to understand the Craft developer workflow. Currently I have been developing on EpiServer using C# in Visual Studio. We have a dev, staging and production ...
1
vote
1answer
26 views

Sprout Forms + Sprout e-mail - Contact form confirmation e-mail

We are using for our first CraftCMS website: Sprout forms Sprout e-mail In our "sprout-forms/entries" all entries show up. So all fields got saved perfect. Now we would like to send to an ...
0
votes
0answers
16 views

Modifying webroot in Nitro

I've just changed the webroot for one of my Craft Nitro sites. After running nitro apply and it completing. I'm getting 404 - Not Found Nginx Am I doing something wrong here? Is there a command I'm ...
1
vote
2answers
42 views

Craft CMS on LAMP (Ubuntu 20.04 LTS) /admin not loading

I'm completely new to Craft CMS, I come from the Drupal/Wordpress corner. On my Ubuntu 20.04 LTS with PHP, MySQL, Apache and Composer installed. Using Composer I installed craftcms to /var/www/html/...
1
vote
2answers
24 views

Sending Craft Commerce Orders to Salesforce.com

I know similar questions have been asked before... but they are a bit dated and there was never a clear answer. I'm looking to send order information from Craft Commerce to Salesforce.com. It's a ...
1
vote
2answers
36 views

Show 'active' related entries from a structure under one parent

I have entries where other entries from a structure can be selected as related entries. The structure is one level deep. If sublevel 1.1 and sublevel 1.3 are selected as related entries, I want to ...
0
votes
0answers
13 views

Graphql: How to get all entries and all related entries

I am really new to graphql and the jamstack-thing but i was wondering how is it possible to query all "Events" with all related "Speaker"? Events and Speaker are two sections. In ...
0
votes
0answers
11 views

Commerce: Sales that toggles product availability as a condition

My client creates and sells products that are only for sale around the Christmas and Easter holidays. I tried to solve this in the front-end by adding a date range on the product which toggles the buy-...
0
votes
0answers
18 views

ImagerX Connection Refused on Craft Nitro

I've currently got a website setup with Craft Nitro, though when trying to query an ImagerX image I get the following error: cURL error “7” encountered while attempting to download “http://xxxxx....
1
vote
1answer
21 views

Is it possible to increase the number of entries in the entry list in the entry view, where default is 100 per page?

Is it possible to increase the number of entries in the entry list in the entry view, where default is 100 per page? We want to show 300 entries per page in the admiun panel.
0
votes
0answers
21 views

Craft CMS SSL added to website correctly but says insecure for admin panel

I have 2 websites one in craft cms 2 and the other in craft cms 3. Everything works fine except the control panel always shows HTTPS insecure, for both the sites. Below is my .htacces file, <...
0
votes
0answers
20 views

How to check if the user is trying to sign in from a new device?

I have a multi-step signup form. Registration workflow: 1- Verify phone number by Twilio SMS service. 2- if the number is activated successfully then show the signup form and register a new account. ...
1
vote
1answer
47 views

.htaccess not rewriting filenames

I'm not sure whether this is a Craft problem or whether I'm just not seeing something wrong. For a test site with a folder structure like: public assets css I have this: RewriteCond %{...
1
vote
1answer
12 views

Asset Custom Field Returning Null in Array

I am relatively new to Craft CMS and I have encountered an issue that I have attempted to debug for quite some time. When using the {% dd %} function to dump my array, a load of my custom fields ...
1
vote
1answer
8 views

Getting 503 error when setting up a site with CraftCMS nitro

I am experimenting with Nitro and getting the 503 db error when trying to connect db. I am able to connect to my GUI (Sequel Ace) but not get the browser connecting. My db.php is as follows: return [ ...
1
vote
2answers
38 views

Sort Entries by Field in Category

I have entries from a section 'title' which all have an associated category 'author'. Category has an associated field 'sortName'. Essentially, I am trying to sort a bunch of books by author last name ...
2
votes
1answer
17 views

Cookie-Plugin: Why does Cookies get closing by change entry via navigation / menu?

We want to solve a pop-up or a so-called "header info" about the cookie plugin "Cookies". We have assigned and created the cookie accordingly. It appears as soon as we set (initial ...
1
vote
1answer
23 views

Bad Gateway when using cached category query

I'm trying to find all tiers that have associated entries for a selection dropdown. This does not work, and throws a 502 error {% set allTeirs = craft.categories.group('catPartnerTeirs') %} {% set ...
0
votes
0answers
12 views

plugin-sproutforms - Getting an Unknown Error

I have created a form using sprout forms in Craft 2.7.4. I have posted 150 questions and have six more new fields to add before the form is done. However when I go to post my new field I get a (...
0
votes
0answers
21 views

What's the recommended approach for applying effects on images and saving them in the respective volumes?

I'm creating a plugin in Craft CMS and it has a feature where you can apply certain image effects and after you are done, you can save it in the configured Asset volume. I know that ImagerX also does ...
0
votes
0answers
20 views

Headless commerce in Craft - SCA2, tokens and taking payments client-side

I'm building an SPA with Svelte that's supported by Craft and Craft Commerce. Currently, I'm fetching products, building the cart locally, syncing it with the server, and taking payments using Stripe ...
0
votes
0answers
21 views

Path issue shows with composer installing via MAMP on macOS

When I have tried to install composer for laravel 8 on localhost MAMP I have gotten this message in command line (terminal): -bash: /Applications/MAMP/bin/php/php7.4.16/bin/php: No such file or ...
1
vote
1answer
35 views

Is there a way to install a demo without Docker / Nitro?

As I'm a total n00b, I was wondering if there's a way to install, or import data from (for example) Spoke and Chain without using Docker, or Nitro? For what I've seen, CraftCMS will be something to ...
0
votes
0answers
15 views

Configure Node.js Remote Interpreter in a Craft Nitro

Can I configure Node.js remote interpreter in Craft Nitro for PhpStorm? If it is possible, what should be the Node.js interpreter path? https://www.jetbrains.com/help/phpstorm/configuring-remote-node-...
1
vote
1answer
32 views

Find First Entry That Matches Current Category

I need help. I am creating a category listing which I have working great. The next step is where I'm struggling a bit as I can't seem to query the related entries on a loop basis. For each "...
1
vote
1answer
26 views

Where to implement Craft Webhook FilterInterface

I have a custom Module and I would like to implement the craft\webhooks\filters\FilterInterface as seen on the doc. I understand that the event Webhooks::EVENT_REGISTER_FILTER_TYPES should be added in ...
0
votes
0answers
9 views

Craft tests - FieldFixture - why does it manually adds and removes fields?

I was chcking out craft testing classes and notices that FieldFixture has custom load and uload methods that manually create and remove fields. Fixtures should add data and then remove it ...
1
vote
1answer
28 views

How to find next sibling from entry order of parent entries field

I have an index of projects that uses a standard entries field to select multiple entries to display and also provides a custom order (different to their Structure order). This is my "Projects&...
0
votes
0answers
7 views

Testing fixtures - grabFixture method returns null

I set up codeception tests and copied some fixtures from Craft repository. Within unit test class, i can access fixtures data of elements, for example for EntryFixture. I use this code, where entries ...
2
votes
1answer
22 views

Plugins with extensive tests

What are Craft plugins with extensive (codeception) tests in their repositories? I want to look at working examples. I also know that Craft repo itself and Commerce have tests set up.
0
votes
1answer
30 views

Display entry field if it contains search query

Is it possible to display an entry field in search results if it contains the search query? Context: I have an entry with a list of PDF assets. I want to show an asset in the search results if it ...
1
vote
1answer
26 views

Approach for creating a dropdown for an entry's field based on a selected entry

I'm running in to a situation that I don't know how to solve in Craft. I want admin CP users to select one entry from a list, and then based on that specific entry select a value from inside the ...
0
votes
0answers
15 views

Prevent breaks in redactor

I'm trying to configure redactor in Craft 3 to only allow a single line. Setting "enterKey" to false seems great for typing, but pasting content still makes it add breaks. Here's my ...
1
vote
1answer
37 views

Alternating Forloop items across Content Blocks

I have a parent forloop that cycles through my content blocks and multiple child forloops that cycle through list items. I'm trying to alternate the left and right alignment for my child forloop items ...
1
vote
1answer
26 views

Replace HTML string in body tag?

I have thousands of imported entries which have HTML image embeds to files which no longer exist. Is there a way to use the replace function in the tag to say replace <img src="[variable ...
0
votes
0answers
27 views

Create a structure entry with GraphQL in one trip

I was wondering if it is possible to create a structure with multiple children and nested entry via GraphQL with one mutation query? For now, I can only create the first level entry of the structure ...
2
votes
1answer
69 views

Get global variable value PHP

In twig, I can get the value this way, globalWebsite.freeTrialPeriodDays I need to get this value in PHP, but cleary this won't work; $trialDays = \Craft::$app->getGlobals()->getSetByHandle('...
0
votes
0answers
19 views

Character encoding problem when move between PCs

I'm using MAMP PRO to develop site in local environment with Cloud functions for sync. Everything works fine except for character coding of entries' text. Evidently a problem with encoding but I can't ...
3
votes
1answer
24 views

Control panel icons list

Is there any list of icons used in control panel avaible? These ones that are displayed using webfont Craft.woff.
0
votes
0answers
18 views

Craft messes up Color Profiles on Upload

It's known that Craft CMS sometimes messes up color profiles when using image transforms. Up until recently, adding 'preserveImageColorProfiles' => true to your general.php fixed this issue. But ...
1
vote
2answers
39 views

What is the best way to create breadcrumbs based on a categories?

I have a question related to breadcrumbs. I have a multiple categories with level 3 hierarchy, now if I assign only one category to any product it works for me to create the breadcrumbs based on the ...
0
votes
0answers
30 views

Craft CMS update failed - Connection refused

I'm gettting the following error while trying to update within the control panel. Fehler: curl error 7 while downloading https://composer.craftcms.com/packages.json: Failed to connect to composer....
0
votes
0answers
24 views

Twig call to get REFRESHED payments

I use commerce for subscriptions. We design a twig page to show subscriber's payment history. For some reasons, the very last purchase don't show as we need to perform a "refresh-payments" (...
1
vote
1answer
31 views

Craft Commerce Subscriptions

We're using commerce 3.2 and were testing the plans options with the default templates. We've put in the Stipe test keys, but when we try to subscribe, we get the message: Unable to start the ...
1
vote
1answer
26 views

How do I reset all Commerce order references?

By default, Commerce uses the {{number[:7]}} format to set an order's reference on order completion. Now (after the site already has orders and I can no longer reset the site's data), I need to use a ...

15 30 50 per page
1
2 3 4 5
270