All Questions

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

Create Craft CMS user with API

Does Craft CMS have an API to send requests to create and auth an account there?
0
votes
0answers
6 views

Searching for a way to add products to cart and sending the csrf token with ajax

Searching for a way to add products to cart and sending the csrf token with ajax This is my current code; $('.add-to-cart-form').on('submit', function(e) { e.preventDefault() ...
0
votes
0answers
8 views

Forbidden exception

Our users when they log in they are unable to see their photos why can this be happening they log in and the photos don't appear. 2020-11-25 20:08:04 [-][-][-][error][yii\web\HttpException:403] yii\...
0
votes
0answers
11 views

Craft Commerce: Wrong payment currencies in orders

I have Craft Commerce installed on my site (which uses Craft CMS 3.5.14). I have set up multiple payment currencies for it (NZD - which is the base currency, AUD, EUR, GBP, JPY, USD). When I go to ...
0
votes
0answers
4 views

Sprout Forms Recaptcha js error - everything flagged as spam

I'm using the Google reCAPTCHA plugin with Sprout forms. I'm trying to use an invisible reCAPTCHA badge, but I'm getting a js error on page load: Unhandled Promise Rejection: TypeError: null is not an ...
0
votes
1answer
9 views

After Migration from v2.9 to 3.5 - some entries added into an entry-relation-field get added twice after saving

We migrated a craft cms site with 3 locales from v2.9 to 3.5 We have a section with a field of type "Entries". When editing the entry, and adding certain entries to this field, those get ...
0
votes
1answer
6 views

Email notifications solspace calendar

I'm considering the Solspace Calendar plugin for a project. Can the plugin send automatic e-mail notifications when an event has been submitted from the front-end? Can the plugin save events ...
1
vote
1answer
11 views

Dates for entries are in different language

When the user wants to edit the Post Date or Expiry Date of an entry (channel/structure), the calendar is in Welsh language. I have no clue how this happened. How can I change this? Thank you
0
votes
0answers
5 views

OAUTH/Social Poster can't connect to facebook: “Can't load URL…”

I've seen others having this issue with no solutions either but still need to put it out there. What is it I'm missing here? I seem to have everything setup correctly.
0
votes
0answers
5 views

CraftCMS cookieValidationKey must be configured with a secret key inside Docker Container

I am using CraftCMS, and I am getting this error: Invalid Configuration – yii\base\InvalidConfigException craft\web\Request::cookieValidationKey must be configured with a secret key. The longer error ...
0
votes
0answers
9 views

Create folder in asset volume via GraphQL

Is it possible to create a subfolder within an asset volume via GraphQL? If yes, can you point me in the right direction? I just found mutations for file uploading, but nothing for folder creation. ...
1
vote
1answer
13 views

Change the fill or stroke colour of an SVG using a field value?

Is it possible to change the fill or stroke colour of an SVG using a value pulled from a custom field? For example: {{ svg('@webroot/_dist/stat/link-arrow.svg')|attr({ stroke: '{{ entry....
1
vote
1answer
18 views

Displaying notification in control panel

Is there any js function that will display these notifications that appear on top of the screen? Flash messages use these notifications, but I don't want to use flash messages, I want to display ...
0
votes
1answer
40 views
+50

Feedme Skip Entry if No Matching Elements on Field

Is there a way on Feedme to not import an entry if it doesn't have a match on a specific field? e.g. If there is no entry that it matches up to, don't import it. Here's the current code I have: ...
1
vote
1answer
19 views

How to translate a structure url

I'm working on a multilingual website where I have one structure called Products. Currently, this structure's URI format is configured like this: {parent.uri ?? section.handle}/{slug} Which returns ...
1
vote
1answer
14 views

Commerce - add new tab to order page in control panel

I'm am creating module that provides integration with shipping service for Craft commerce. UX wise, it would be best if I could put module functionality in separate tab on order page. Mind you, I know ...
1
vote
0answers
22 views

Sprout Email: object variables will not resolve in text and redactor field since upgrade

I upgraded my whole system: Craft Pro (2.9.2 to 3.5.15.1), Sprout Email Pro (2.4.7 to 4.4.8), and several others. After fixing many errors, most occurred with Sprout Email, I now have only one major ...
1
vote
1answer
25 views

Kentico to Craft

We’re evaluating the option of migrating our website, which currently runs on Kentico webforms, to Craft. Do you know of tools and services which make this easier than a re-build?
1
vote
1answer
32 views

Can I apply adjustments (discounts) through a controller?

I have a controller which when called (actions/some-module/discount-link/apply?code=abc) associates abc with an entry and based on some stuff in that entry populates the cart with some specific ...
0
votes
1answer
12 views

Outputting structured product attributes in JSON-LD code with SEOMatic

My products have a lot of attributes that I would like to serve to Google AMP via JSON-LD. The attributes vary between product types. How should I do this? I see there is a file under nystudio107\...
0
votes
0answers
9 views

Force default site for a specific page / entry

I have a site site.com that has a french and english version. On one page / in one template I'm using a plugin that breaks when the site is switched to the french version site.com/fr/ To get around ...
1
vote
1answer
9 views

Output loop position number

Good Evening, This is probably something really simple, but I need to output the position of the entries in a query within the loop {% set relatedEntries = craft.entries().section('memories').limit(10)...
0
votes
0answers
24 views

Solspace Calendar: Allow guest access

I'm working with Solspace Calendar and need to allow guest access to post events to a calendar. I'm currently only working with the demo templates and have guest access turned on. But I seem to be ...
0
votes
0answers
8 views

SuperTable Returning Unexpected Results w/ Template

Perhaps I am not understanding how to properly use SuperTable, but I am having a strange issue where calling for the results of a SuperTable field twice in the same template overwrites the results of ...
1
vote
1answer
36 views

FeedMe Change Slug when Importing

I asked this question previously before Feedme was acquired by Craft, though I haven't updated Feedme & the code since now. I'm getting the following error when processing my feeds. I'm trying to ...
0
votes
0answers
9 views

Redactor Richtext. Editing a Link with an “&” breaks the link

Both screenshots were done without saving the entry. Just adding the link inside redactor and opening the edit menu again. Adding a new Link After pressing add and edit the link again You can see that ...
0
votes
0answers
5 views

Add input fields to plugin settings with JS

I'm working on a plugin and I want to be able to add fields to the plugin settings page when JavaScript event listeners are fired. My first idea was to output an input field using Twig, and then ...
1
vote
2answers
50 views

mkdir(): Permission denied

I have an old craft 2 installation. When I want to go to the frontend I get: mkdir(): Permission denied 745 { 746 if ($permissions == null) 747 { 748 $permissions = ...
0
votes
0answers
15 views

Sprout Forms notification test giving me an internal server error

We have set up this particular Craft CMS site with smtp details and when testing from the Settings > Email page it works fine. We've installed Sprout Forms and created some forms - all seems pretty ...
0
votes
0answers
11 views

Possible to clean up elements_sites?

We have a website that has around 80k users per month and we're updating around 1k entries per night due to stock updates. The site's been live for almost 2 years and the CMS has become really slow ...
1
vote
1answer
17 views

Enable single line item mode on Commerce Pro

Is there a config option or something that would enable the 1 line item limit in cart. That means once customer adds second line item to cart first one would be removed so that only one would be left. ...
1
vote
1answer
34 views

How to use Sprig's “Load More” Recipe After Update

This is a continuation of a previous question I had (Here). I am using Sprig's Load More Recipe. In my category page, I want the load more function to only pull up entries that equals the current ...
1
vote
1answer
16 views

Getting an asset Url from an entry loop into a meta tag

I found it pretty straightforward to get something like dynamic page titles working by setting a variable at the template level and pulling that into my site's meta tags: My _layout.twig: <head> ...
0
votes
0answers
8 views

Freeform - file field, upload to subfolder with submission id

In field settings, we have "Upload Location Subfolder" setting, with "The subfolder path that files should be uploaded to. May contain {{ form.handle }} or {{ form.id }} variables as ...
1
vote
1answer
22 views

Stay on the same page after logout

Is it possible to stay on the same page after logging out from the frontend, assuming that guests can still view that page? By default, when logging out we are redirected to the homepage or some ...
1
vote
1answer
17 views

Site url is not generated correctly when using environment variables

I'm working on a multi-site setup (for a localized website). In my .env file, I have defined a SITE_BASE_URL variable. Then, in the control panel, I set up each site's base url with that environment ...
0
votes
0answers
11 views

Using PHP 7.4 on Laravel Forge, the storage folder has a permissions issue

Standard Craft install on Laravel Forge with PHP 7.4 installed. The storage folder is marked as unwritable so the site won't load. Switching back to PHP 7.3 fixes instantly. I think it's related to ...
0
votes
0answers
15 views

Element API, query entries where relationship field ':empty:' AND the same relationship field with specified entry ID

Element API, query entries where relationship field ':empty:' AND the same relationship field with specified entry ID. Can't seem to figure out how to do this without performing two separate queries ...
1
vote
1answer
18 views

Feed me plugin, cURL error 60

This is my first time using the Feed Me import plugin (craft 3.5.15.1). I'm pointing the feed URL to a file in the public root, e.g. http://dev.mydomain.com/import.csv. When executing the import, I ...
1
vote
2answers
38 views

Specify a specific entry type in paramaters

I am currently searching within multiple sections on my site. I'd like to limit one of the sections ('courses') to a specific entry type ('cce')? Any help would be greatly appreciated! {% set params = ...
1
vote
1answer
14 views

Running plugin migrations when other plugin is installed?

I'm creating a plugin (A) that has optional support for another 3rd party plugin (B). When my plugin A is installed, I create a number of tables. If plugin B is also installed my migrations create ...
0
votes
0answers
15 views

Initialisation, failed to determine IP address

Thought I'd give Nitro a whirl but can't get past initialisation. Initialize the primary machine now? [yes] How many CPU cores? [2] How much memory? [4G] How much disk space? [40G] Which version of ...
0
votes
0answers
13 views

Preventing certain queue jobs from being created, or selectively deleting jobs from queue

Does anyone know how I'd go about either preventing certain jobs from being added to the queue, or, if that isn't possible, deleting jobs given a certain criteria? The context is that I have a site ...
1
vote
1answer
13 views

Add Redactor field to searchindex

Is it possible to add a redactor field to the search index? I'm importing about 160 posts from a WordPress blog and the client has said it is absolutely essential that the posts themselves are ...
1
vote
1answer
20 views

Craft CMS: Data too long for column 'cacheKey' at row 1

We have Craft CMS v3 using multi-sites. We are using cache to cache whole pages based on the absolute URL as some URLs have query parameters which seem to be ignored when not using a key. So the ...
0
votes
0answers
15 views

Control Panel: Order search results from a structure?

A client of mine asked how he can sort entries tied to a specific category in a structure. I thought to myself that this is easy, so I went and did a search myself: category_field_name:...
0
votes
0answers
4 views

Display debug toolbar in controllers

I created a controller that returns XML and is not related to Twig rendering in any way. Can I still display the debug toolbar when I enter this controller URL to check if my database queries are ...
1
vote
1answer
18 views

.env parsing error on Windows server

Has anyone had issues with Craft parsing a .env on Windows Server? Dotenv is throwing an exception (FileException - invalid name) when parsing the first line of my .env, which is just a comment. I ...
0
votes
0answers
13 views

Migrating assets from remote volume (Cloudinary) to local folder

I need to migrate an asset volume from Cloudinary to local folder. What is the appropriate strategy to execute the change while maintaining database integrity? Can I simply change the volume type to ...
1
vote
1answer
16 views

Commerce - show description of discount without coupon applied to cart

We can retrieve description of discount applied to cart that has its own coupon like this: craft.commerce.discounts.getDiscountByCode(cart.couponCode).description Is it possible for discount that do ...

15 30 50 per page
1
2 3 4 5
254