Questions tagged [craft3]

For use with questions relating to the Craft 3 version of Craft CMS, including the Beta and RC releases.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 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
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 ...
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 ...
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 ...
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
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
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
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
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 ...
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
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
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 ...
0
votes
0answers
27 views

Manually sort entries related to a category in the admin

Is anyone familiar with a way (in the admin) to manually sort the order of entries related to a category? For example, a "Software" entry gets assigned to multiple categories during entry. ...
2
votes
1answer
73 views

Is there a name for Craft 3's database model?

I find Craft 3 to have a very clever database structure which eschews all of the issues I've seen with EAV. Despite contrasting the differences between Craft 3's model and EAV, I'm having difficulty ...
0
votes
0answers
10 views

Modying SEOMatic field in events

In a Element::EVENT_BEFORE_SAVE event within a custom module I'd like to set an SEOMatic field. setFieldValue doesn't work presumably because it's a custom field, is there any reliable way to do this? ...
1
vote
1answer
30 views

A user deleted my craft Admin account, what to do?

A created user was able to delete the Admin account, now I can't log in Craft anymore with an admin account. How is it possible that a normal user can delete an Admin? I'm in contact with this user to ...
1
vote
1answer
21 views

Partially pay for an order

Is there any way of partially paying for an order, so if the order total amount was $100, how can I programmatically set the payment amount to $50, and then pay the other $50 using another payment ...
0
votes
0answers
30 views

Workflow for running Craft CMS with Docker in production?

I've been looking into running Craft CMS with Docker in production. One of the most helpful and comprehensive resources I've found so far is Matt Gray's blog series. While it goes into great depth, I'...
0
votes
0answers
8 views

There are no sites in the config file on nitro add

When i try nitro add command to they return "There are no sites in the config file" what should i do? Unable to locate a webroot, setting to web. Enter the webroot [web] web Added tutorial....
0
votes
0answers
22 views

Add matrix block content to newly created Entry

Help. I feel this is almost basic and many have asked similar questions, but I cannot get this to work. I have an entry type which amongst other things has a Matrix field ph_selectorViews, which has ...
1
vote
1answer
21 views

Is it possible to duplicate an entry as not enabled/live from the listing page?

Is it possible to duplicate an entry as not enabled/live from the admin listing page? Just this means some user put pages live on the site that are just copies - they forget to quickly change it to ...
1
vote
1answer
222 views

“Unknown package has no name defined” composer error on upgrade

Upgrading from Craft 3.4.20 running Composer 1.10.17 on PHP 7.2. Running ./craft update all returns the following error: error: Unknown package has no name defined. [followed by JSON object related to ...
0
votes
0answers
11 views

Testing database credentials Craft 3 Setup

When i try setup db in craft 3 at windows with composer using php craft setup/db command it give me Which database driver are you using? [mysql,pgsql,?]: pgsql Database server name or IP address: [127....
0
votes
0answers
19 views

Use entry field in redactor

As an affiliate I want one field where the links are stored, this link is saved as an entry. I've tried to call the template_from_string function but variables in the url are not overwritten. Is there ...
1
vote
1answer
18 views

Craft Commerce 3 Decrease line Item qty by one?

I may be missing something obvious but I'm trying to update a +/- quantity button system for adding products to work on Craft Commerce 3 The desired functionality is that click '+' increases the cart ...
0
votes
0answers
10 views

Entry ancestors is null in dynamic asset subfolder path or during EVENT_AFTER_SAVE event

I'd like to use the slug of the top-level entry in a structure in an asset's dynamic folder subpath. I have a structure where the entry I'm concerned with for this question can sit at either the ...
0
votes
0answers
26 views

Add new translation app.php file in Craft

I'm trying to add a new language file in Craft Control Panel admin site. I have created app.php inside translations/vi folder like this: -my app folder |-- translations |----- vi |-------- app.php ...
3
votes
2answers
34 views

Twig search function doesn't work after upgrading to Craft 3

My client's Craft 2 site includes several templates which use search functions to return a product entry by an ID, like so: {% set product = craft.entries.section('Product') .search('...
1
vote
1answer
56 views

Craft 3 - Twig search query for entry with custom EntriesField containing disabled entry

I have a search form with 1 simple input (q) I also have 2 sections: SECTION-A & SECTION-B The search is for entries within SECTION A. The entry I'm searching for contains a custom entriesField ...
0
votes
0answers
17 views

Load category values based on another category field

I'm really new to Craft CMS, I have a site where I need to do something like this: There are 2 categories, Brand and Model (Models have a relation to Brands via category field). In entries I have 2 ...
1
vote
1answer
36 views

Filtering by lightswitch fields

Bit of an unusual one and sure must be missing something but know if we have a defined lightswitch field we want to filter against it can quite easily be done so like this: {{ craft.products().myField(...
1
vote
1answer
15 views

Entries field templating only when entry is added

I have a section type Structure called How to videos, in which I have field type Entries. Now, when I select "Products" in the field type 'Entries'. I only want the selected Entries Products ...
1
vote
1answer
49 views

Maintaining and deploying many multi-site from a single codebase

We're developing an application that uses a multi-site Craft back-end with a JS front-end, making use of GraphQL. The intention is to maintain a single codebase that can be used to deploy new and ...
1
vote
1answer
14 views

returning HTML in $event->sender->addErrors doesn't work

I have a plugin which is checking if there is a duplicate entry before save. I'm trying to give the user back an anchor to the entry which exists so my client can switch without searching for it in a ...
1
vote
1answer
32 views

Image Transforms not generated - permission problem?

Since I installed my Craft based website on the production server the image transforms are no longer generated. The tasks runs through more than 5000 images but doesn't generate new ones. There have ...
1
vote
1answer
50 views

Do the number of Sites in a Multi-Site have a practical limit?

My use case is creating microsites for hundreds to thousands of customers, allowing them to edit/create their own site. Currently it is set up with channels with auto-created entries for users and no ...
1
vote
2answers
37 views

Twig template outputting blank page on non-“dev” environment

I've created a base twig template which contains some basic "maintenance mode" logic. This works perfectly as long as the main ENVIRONMENT in the .env file is set as dev, but fails for ...
1
vote
1answer
39 views

Deleting Duplicate Fields Brings down Craft Website and Server

I have somehow managed to duplicate some fields in my Craft install (see image of unused fields). When I delete the unused duplicates I create a server error and can't access Craft. To rectify I had ...
1
vote
1answer
24 views

Craft search only shows results matching 'title' of entries

I´m doing a search on Blog entries, i want to get all relevant entries searching on several fields, and seems that only matches the title. I try already using search(query), now i added the fields, ...
1
vote
1answer
77 views

Input and Use Twig Variable in External JS Script Across Different Pages

I have created a _layout.twig file which acts as my base to hold content on the page -> _layout.twig: <!DOCTYPE html> <html lang="{{ craft.app.language }}"> <head> ...
1
vote
1answer
28 views

Error on functions in queue: “Session does not exist in a console request.”

I already experienced this same problem with Craft Commerce a while ago (Error on functions in queue: "Session does not exist in a console request.") and got a solution that solved the ...
0
votes
0answers
54 views

Create a New Entry with Fields Populated from an Existing Entry Table

I am still learning how to work with craft on the back end but so far I can see it is a very powerful platform! I was wondering if there is a way that within an existing entry channel say "foo&...
1
vote
1answer
17 views

Folders required to download when moving a Craft 3 installation to another server?

If I'm downloading a Craft 3 website one server in readiness to deploy onto a new server, which folders should I download aside from?: /templates /web Also, do I need to redownload the 'cpresources' ...
1
vote
1answer
23 views

can't login after move site to local - empty response

After migrating a site to local i can't login into the backend-part /admin/login. There is an error message in the browsers console log VM1974:1 POST http://great-site.localhost/index.php?p=admin/...
1
vote
1answer
31 views

German special characters like umlauts (ä, ö, ü) are not converted correctly with convertFilenamesToAscii

Filenames with German special characters are not converted correctly with convertFilenamesToAscii, e.g. ä, ö, ü are converted in a, o, u in contrast to ae, oe, ue in slugs with limitAutoSlugsToAscii.
0
votes
0answers
29 views

Tons of Apache TWIG errors on Craft 3 website

I'm only getting these errors on a select few pages of my website after upgrading from Craft 2 to Craft 3: TypeError: Argument 1 passed to craft\web\twig\variables\CraftVariable::entries() must be of ...
1
vote
2answers
57 views

Video Asset URLs not rendering

I'm trying to output the video files from within a block but get a Calling unknown method: craft\elements\db\AssetQuery::url() error when using the following: {{ block.video.videoFileWebm.url }} ...
0
votes
0answers
22 views

How to remove the default cart notice after adding the line item?

I'd like to remove the default notice (Cart updated.) after adding the item into the cart. I have an event for checking the product with the warehouse system and have an error message for showing to ...
1
vote
1answer
13 views

Using MySQL With just InnoDB storage engine

What are the implications if I create all the Craft database tables on the InnoDB storage engine? Will there be any performance problem?

1
2 3 4 5
32