All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

Is there a query field?

In Craft, is there a field that allows the user to create a custom query in the back-end? Something similar to the filters in Wordpress' query loop block? https://wordpress.org/support/article/query-...
1
vote
2answers
19 views

Unable to find the template

I know this question has been asked multiple times. I have read all the post on this topic, and craft's docs. But still, I haven't figure out what I'm doing wrong. I would really appreciate a hand ...
1
vote
1answer
20 views

Redirect to Craft CMS Website Results in 403 "Request forbidden by administrative rules"

My Setup I added a stripe checkout redirect from my craft website using Stripe Checkout so I can accept payments from customers using payments handled by stripe. In simple, I use AJAX on the frontend ...
0
votes
0answers
13 views

Craft FeedMe import restarts multiple times and doesn't cancel previous imports

I am using a very large json file (about 20,000 items) to import entries into Craft with FeedMe (Craft 3.5.15.1, FeedMe 4.3.1). Locally it runs just fine and pretty quickly considering the volume (...
0
votes
0answers
14 views

HTTP 400 – Bad Request – yii\web\BadRequestHttpException

Hi I'm getting this error on every other save when in the page editor in Craft CMS: HTTP 404 – Not Found – yii\web\NotFoundHttpException Draft not found The only things I am certain of are: The error ...
0
votes
0answers
7 views

How to select entries based on site group?

I have multiple sites with multiple languages. In Craft 3, each language is a separate site, we can group them by site group. For example, In the USA site group, I have USA - English and USA - Chinese....
0
votes
0answers
13 views

Commerce price difference for specific country

I have a fairly simple shop with one product. I would like to be able to adjust the price of the product (increase it by around 5%) for customers from one specific country. I have some price changes ...
1
vote
1answer
19 views

How do I renew Craft CMS license?

When I go to Updates in my home Dashboard, I see there are "5 updates available!" I click "Go to Updates" and a big orange ribbon pops up that reads: Your license has expired! ...
0
votes
0answers
13 views

Exporting & importing text from the CMS to update specific language-versions of the site?

Question for people who manage websites in multiple languages: Our website is in 5 languages. We used the Acclaro plug-in to export / import bulk translations. Now we need to update some of text on ...
0
votes
0answers
15 views

Environment Password Variable Not Working

I have env variables setup for a SMTP connection. These setting work correctly locally, the same on a production server don't work. After some troubleshooting, if I manually add the password via the ...
0
votes
0answers
18 views

Craft Commerce/Sprig - change add to cart button dependent on what is in cart

I am using Craft Commerce with Sprig and I am hoping to get some help with the add to cart button, which I need to change dynamically dependent on what is already in the cart. Essentially I have two ...
1
vote
1answer
34 views

Newbie: Migrating Craft website to new host questions

I've no experience of Craft but do have 'historic' (pre Gutenberg) experience of front-end Wordpress. From the Dashboard they seem very different. Am investigating migrating to new host as we are ...
1
vote
1answer
70 views

Moving a site to a new group

Got a question regarding site groups and more specifically about the possible data loss. Scenario is as follows: I have a site A and site B in the same group. Client now wants both sites available in ...
0
votes
0answers
17 views

Remove ID in URL

is it possible to remove ID in post URL : https://www.example.com/example/example-2/exampleexample-2464942 I mean "2464942". Thanks everyone !
0
votes
1answer
25 views

All Plugins Showing "Not Installed" After Promoting Changes From Dev to Stage Environments

We are using the custom exec widget to move the codebase, backend fields, section creations, and images from one environment to another. We have Dev, Stage, and Production environments. After ...
2
votes
2answers
164 views

Get array of titles instead of whole collection of entries' attributes

I know that to get the entries I can do: craft.entries.all() but instead of getting the whole collection of entries, I would like to get an array of titles from those entries (or any other field). ...
1
vote
1answer
27 views

Default field on any single pages

Not sure if I'm asking this question well, but I'll try... is there a way to have a field appear by default in all my single page? Currently whenever I create a new single page I have to manually add ...
0
votes
0answers
16 views

Bearer Authorization not working Safari

I'm using craft 3.7.16 as headless and retrieving the data through GraphQL. I've identified that Safari is not working when we have a bearer authorization. It seems that it changes the bearer to basic ...
1
vote
1answer
27 views

Allow drafts in entries field

Is it possible to allow selecting drafts in an entries field? Not drafts of an existing live entry, but drafts that aren't published yet. The only thing I found is an ElementCriteriaEvent triggered in ...
0
votes
0answers
18 views

How can I programmatically remove an attachment from a Commerce email?

I use the EVENT_BEFORE_SEND_MAIL event (in Craft Commerce) to check if an order meets certain conditions. If true, the attachment that Commerce adds to the email should be removed. Is there a way to ...
1
vote
1answer
21 views

Access Asset Type for subfolder

I want to create asset subfolders by page & by asset type. I use an asset field in an matrix field for multiple asset types like video, images etc. In an asset field I can access the slug of an entry ...
1
vote
1answer
43 views

Is it possible to display the debug bar while NOT logged in?

I'm trying to solve some possible performance issues caused in the logic of my site which checks for whether a user is logged in or not, to display or not display certain pieces of content. Is it ...
2
votes
1answer
30 views

Where can a module safely store Project Config settings?

I can add a custom setting to the Project Config like so: Craft::$app->getProjectConfig()->set('modules.module-name.settingName', true); In the project.yaml file that would get saved at the top ...
0
votes
0answers
15 views

how to use the Freeform table field

So I am trying to create a field using the table field in the pro version of Freeform, and one of the columns I need is a "Select" type column. I am wondering how do I add options to this. ...
1
vote
0answers
31 views

Invalid Route in module

I'm new to craft and slowly learning how to use more advanced features. I'm trying to write a module with a controller. When the route is invoked on a fetch call I get the following error: HTTP 404 – ...
0
votes
0answers
8 views

How to apply discount after taxes in Craft Commerce

I have a unique situation where the discount applied must be done AFTER taxes are applied to the total cart price. Can I reorganize the discounts to come after tax? Or is there another way to make it ...
0
votes
0answers
22 views

Eager load only ids() for related entries?

I'm hoping to slim down this query, as it doesn't scale how I need it to (having potentially hundreds of thousands of Matrix Blocks). {% set redeemedOffers = craft.matrixBlocks() .typeId([5]) ...
0
votes
0answers
13 views

How to display entry on home page from backend

I am using a version of 3.6 I want to display data on the homepage from the backend when I'm trying with {{ entry.displayName }} then getting an error Variable "entry" does not exist. how to ...
1
vote
1answer
16 views

Class 'Craft\File' not found during installation

I'm installing Craft 2 locally and am getting this error message when I expect the installation screen. I've checked the write permissions, and the directory has them (inheritable permissions). ...
0
votes
0answers
17 views

Get related entries / users filtered by relation field name in GraphQL

I wonder if it's possbile to deal with the following situation with Craft CMS in graphQL: We have users related to projects in two different ways: users.bookmarkedProjects = [projectIds] project....
2
votes
1answer
26 views

Querying media asset in module

I'm learning to write my own modules, so there's a lot that I still don't know. I have looked at other modules/plugins, videos, but I arrived at a dead end. I'm writing a module that generates ...
0
votes
0answers
15 views

How can I stop a user registration thank you page being cached in Craft 2

I seem to have an issue with a thank you page on user registration in craft 2. The thank you page gets passed a modified users id which is shown to the the registrant. However some odd occasions have ...
1
vote
1answer
10 views

Graphql schema causing error on project-config/apply

Craft v3.5.7 First off, graphql is not being used on this site so I'm not sure why the schemas are being generated and causing errors. The graphql.yml file contents: publicToken: enabled: false ...
1
vote
2answers
15 views

OrderBy section when selecting multiple sections in entries query

When getting pages from multiple sections like so: {% set aboutNavigation = craft.entries .section(['about', 'newsIndex']) .all() %} How can I set order that the sections appear? So I want ...
1
vote
2answers
24 views

Product Search - redactor description field not indexing

I am struggling to get my head around plurals and fuzzy search etc. I have seen this article, which seems to help answer this but am hoping someone can clarify based on my scenario Search forms ...
1
vote
1answer
25 views

Will having the Craft storage directory (CRAFT_STORAGE_PATH) on a Digital Ocean Volume (like AWS EBS) dramatically affect CMS save performance?

We use the Craft CMS headlessly. We have a deployment with 5 sites and an entry type with a very complicated Matrix field. We are using a Digital Ocean Volume (like AWS EBS) for the Craft storage ...
1
vote
2answers
79 views

Pass parameters to element query as array - in PHP

In Twig, we can do this like this: craft.entries({ id: 11, relatedTo: 22, }) But in PHP code, this does not work: \craft\elements\Entry::find( [ 'id' => 11, ...
2
votes
1answer
40 views

CraftCMS Documentation Site License

We stumbled upon the documentation site while looking at VuePress example sites. We couldn't find any license information on the documentation Github project page (https://github.com/craftcms/docs). ...
1
vote
1answer
23 views

Eager loading a photo within a matrix field

Thanks to some help recieved on another question I have discovered Eager loading which makes a lot of sense. I am now trying to output an image from a matrix field. I am part way there as my imageAlt ...
1
vote
1answer
25 views

Output post category

I have created a blog channel and a blog category along with a category field. Now I wish output the category within the blog post. {% set categoryEntry = craft.categories().group('blog') %} {% set ...
1
vote
1answer
36 views

Hand tailored contact form -no pluggins

I'm coming from Wordpress and really enjoying craft. I wonder though if it is possible to create a contact form without any plugins? And if so, how easy/worthy of an effort is is? In WP I would create ...
1
vote
1answer
21 views

Jsondecode in element API causing memory issue

I have the element api pulling back 1300 entries. One of the fields is storing geojson data and I had to change the type from text to mediumtext to accommodate some of the data stored. When I moved ...
0
votes
0answers
17 views

Route issues, error Undefined index: uriPattern

My front end gives the following error: Undefined index: uriPattern after changing some code in a template that I changed directly through FTP instead of pushing it through GIT. When I go to /settings/...
0
votes
0answers
16 views

Unique uid across sites?

Are entries' uids unique across all sites in a multi-site setup? I use Craft CMS 3.7. I couldn't find anything about this question in the docs. Many thanks Christian
1
vote
1answer
20 views

Output Matrix field within Channel

Very new to craft and hence sorry if this is very basic. I have created a service channel which contains some matrix fields. One for a list and one for button. My approach here may be wrong and hence ...
1
vote
1answer
35 views

start ordered list with number 2

How do I start an ordered list inside a new text block with the number 2 (or any number not 1). I need this trick when a long ordered list is broken up by multiple image blocks. Thanks!
1
vote
1answer
13 views

Assign category to entry using a plugin

Feel like I'm going crazy here... I've got this snippet of code. I find my entry based on title key/value. I find my category ids based on alcohol key/value. I attempt to set the entry category ...
1
vote
1answer
20 views

Are categories first class citizens compared to tags?

I understand the difference between categories and tags. I am trying to choose between them as my taxonomy is not very deep and tags seem just as good as categories. But it occurs to me that ...
0
votes
0answers
29 views

Craft CMS starts throwing HTTP status 500 after a few hours of uptime

I'm working on a "hello world" Craft CMS deployment to AWS ECS. To build my Craft CMS Docker images I use the official base image craftcms/nginx:8.0. The first few hours after the deployment,...
0
votes
0answers
31 views

How can we create the Martix type field?

In Plugin development, I have created a field, Is it possible to create a field as a matrix field or I will have to create custom add more functionality?

15 30 50 per page
1
2 3 4 5
266