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
32 views

How to Upload Multiple Assets Using Frontend Form

I'm trying to create a more interactive experience to upload moultiple images on a frontend entry form. Things I have done: I have implemented the code here: https://docs.craftcms.com/v3/dev/...
0
votes
0answers
25 views

Using Scout plugin Only send attribute value to algolia

I'm converting a plain text field to a dropdown. In doing so the dropdown now sends ALL the values of the attribute to algolia. Is there any way not to do this. I just want to send the Value. What I ...
1
vote
1answer
47 views

Setting up VueJS in a Craft CMS Project

Trying to better my skills and take a simple Craft-driven website to a more modern level with some VueJS. I'm still very much learning Vue. The course I've been following recommends using vue-cli to ...
1
vote
1answer
31 views

Typogrify: hyphenation not kicking in

I am stunned by the typogrify extension for craft. https://github.com/nystudio107/craft-typogrify Alas, the functionalities that are most relevant to me are not kicking in (anymore). As Andrew says ...
1
vote
1answer
41 views

Limit DevMode to admin users?

Is there an easy way to enable devMode only to users logged in with specific permissions?
0
votes
1answer
24 views

Performance basics? BlogPost+Comments vs. One ever-expanding Matrix Field?

New to Craft, and unsure how it works under the hood. In terms of overall performance, I'm curious to know which of the following scenarios is the most performant approach in terms of DB queries and ...
1
vote
1answer
20 views

Pushing additional key values without overwriting existing key values in an array

For an existing key in an associative array, I'm trying to push a new value to it without overwriting the existing values in the key. I've tried this: {% set myArray = { myKey: [ 'value1',...
0
votes
0answers
30 views

Assign user to group available even though not allowed? (Craft v3)

Working my way through the CMS to learn in more detail I'm currently at the users / permissions parts of the CMS. Here I just bumped into the following thing I don't understand: I have a Users Group ...
0
votes
0answers
40 views

How to install Craft 3 on shared hosting

I would like to learn Craft 3 CMS. I would like to do so by installing it manually on shared hosting. I am not familiar with Composer and would like to learn Craft before committing to learning ...
0
votes
0answers
13 views

How can you add a default set of fields to each matrix block?

We have a common set of default parameter fields I'd like on each matrix block on top of whichever other fields are configured. I'm trying to avoid managing them manually on each matrix block. What's ...
1
vote
1answer
53 views

Craft CMS issue with Composer V2

We have a website built in Craft 3.4.14 and we are moving it to a hosting company with CentOS 7, using Plesk Obsidian 18.0.5. The hosting company has told us that they have upgraded Composer from ...
0
votes
0answers
13 views

Can't see changes when editing template file

I am new to Craft. I have a website needs some modifications. I have the homepage using a template called home5. When I make any changes to the file I can't see it on the homepage. For example, I am ...
2
votes
0answers
20 views

Restricting entry editing in the admin section

We have custom permission setup where we have certain admins that are only allowed to edit specific entries. This is done by modifying the entries sources: Event::on( Entry::class, Element::...
1
vote
1answer
30 views

Front end form with Matrix won't add more than one row

I have Notification entry with sendTo field and nViewed matrix: - viewedBy = Users field, limit of 1 - viewedDateTime = Plain Text User's don't see whole front end form, just a 'Mark as Read' link. ...
1
vote
1answer
22 views

Environmental variables for Scout plugin in scout.php file

I was wondering if it was possible to add .env variable for the indices area in the scout.php file? I added this to my .env file SCOUT_INDICES = "search_SCOUT_DEV" Then this to my scout.php \rias\...
1
vote
1answer
81 views

Update Cart’s address ID from plugin

I want to try and stop Commerce 3 creating a new customer address if it’s a duplicate of an existing one. As an example, a store selling digital products has a checkout form that simply asks for the ...
0
votes
0answers
37 views

Craft, AWS load-balancing and auto scaling

I need to move a Craft 3 site to AWS and have it behind a load balancer and autoscaling but I am uncertain on the proper way to keep all instances updated when new releases are done. So this is what ...
1
vote
1answer
51 views

How many simultaneous visitors Craft CMS can handle?

I am looking for a CMS as a backbone for front-end work and I like CraftCMS by its interface and structure, so I wonder if CraftCMS is capable for this project. In practice, most of the work will be ...
1
vote
2answers
32 views

Need help with a Twig template error

I am getting the following Twig error and I cannot figure out what is wrong. I'm new to Twig. Twig Syntax Error – Twig\Error\SyntaxError Unexpected "minify" tag (expecting closing tag for the "cache"...
0
votes
0answers
21 views

Best way to display relevant matrixblock fields when doing a sitewide search?

I'm building a custom search results page which returns not only the entries that contain the search query (searchQuery), but also, the actual text/content in which the search query was found. That ...
1
vote
2answers
46 views

Parse variables into twig email template from custom module

I'm trying to send an email from my module and am trying to pass some vars into my module template that I can render using twig. Please note that this is a module template not a front end template. $...
0
votes
0answers
33 views

404 Error for assets where “Base URL” and “File system path” are different

I am new to Craft 3 and I have seen similar questions asked many but never answered. I want to store my images in a directory that is not public, yet I want them to be served correctly by Craft. The ...
0
votes
0answers
26 views

Deleting primary commerce address throws error

When i try to delete a user address in Craft Commerce, I get an error thrown, saying the address id does not exist. However the address id being passed to the action is output from a loop of the ...
0
votes
0answers
16 views

Redactor, add CSS class to IMG

In Redactor, how can I add a formatting option to Add a CSS class to an image? formattingAdd only works for block elements. So the below does not work. "formattingAdd": { "img75": { ...
0
votes
0answers
29 views

Read File from Main Plugin Page

I'm new to plugin creation for Craft 3 and currently stuck trying to read the contents of a JSON file. I can manage it fine from the Settings page using: protected function settingsHtml(): string ...
2
votes
1answer
24 views

Global Site Variables (Static Page?)

On various Craft sites, I've needed to provide my clients with access to certain variables used across the site. Things like open hours, specific seasonal color palettes, on / off operation toggles. ...
1
vote
1answer
40 views

Additional criteria to filter status of field passed into RelatedTo

I'm trying to save all the images related to an entry in a variable. I need the images that are added through a matrix field in the entry. I'm using the following code, but am then also getting images ...
0
votes
0answers
21 views

Craft Commerce 3 Custom Adjuster

I created a new plugin to register an order adjustment to remove tax for Tax Exempt customers, but I'm having troubles getting the adjustment to actually take place. I have a main plugin file as ...
1
vote
1answer
24 views

What does {{ hiddenInput('enabled', '1') }} in an entry form do?

What's the purpose of {{ hiddenInput('enabled', '1') }} in an entry form? <form method="post" accept-charset="UTF-8"> {{ csrfInput() }} {{ actionInput('entries/save-entry') }} {{ redirectInput('...
0
votes
0answers
13 views

Craft 3 showing blank screen in devMode on exceptions

There are two things I'm trying to sort out – this is all on a local setup with devMode on: When I do a throw HttpException(...) from one of my module's controller actions, the response is not ...
0
votes
0answers
11 views

Error uploading the file

Error uploading the file: The file system path “/home/ecs/public_html/public/uploads/” set for this source does not exist can anyone help?
0
votes
0answers
13 views

Problems with CRAFT_BASE_PATH

I would like to make a Website for a friend and we are having problems with the CRAFT_BASE_PATH in the index.php We want the folder structure on the server, to looks like this: craftfolder is not ...
0
votes
0answers
14 views

frontend-editing with redactor?

Has anyone an idea if it is possible to get the frontend editing for redactor text fields working like in their native redactor demos with click-to-edit and air toolbar, for instance https://imperavi....
1
vote
1answer
50 views

Forcing creation of all transformations for all assets

Regarding a similar question I only found the advice to delete a table in the database but because I don't like fiddling with the db very much I like to ask: Are there ways to force craft to generate ...
0
votes
0answers
21 views

Best way to sync the Live and Dev install/server?

We have a live craft website and are looking into ways to keep a copy of this live site on a subdomain on the same server for development purposes. The ideal way would be to have an identical copy ...
0
votes
0answers
11 views

At what point is siteId set for orders?

I have an adjuster I am trying to get to work, but the order has to come from a specific site in order for the adjuster to be applied. The siteId is 2, but when I try to get the siteId from the Order ...
1
vote
0answers
13 views

Import Stripe subscriptions into Commerce 3

Is there a straight-forward way to import Stripe subscriptions into Commerce 3? I had hoped FeedMe or similar would do it, but it seems not: https://github.com/craftcms/feed-me/issues/472 Any help/...
0
votes
0answers
17 views

Ajax loading for filter based on categories in Craft 3

I have a page with blog listed with pagination using craft paginate. {% paginate craft.entries.section(['blog']).orderBy('postDate desc').limit(15) as pageInfo, entryTemplates %} Now I am need of ...
0
votes
0answers
17 views

Settings Email - GMail setting test

We are trying to add email settings through the Craft control panel panel. We are trying our company account which is a Gmail address (hosted via GSuite). While testing the email service or trying to ...
0
votes
0answers
18 views

Error using the Contact Form plugin

I have been trying to build a simple form that sends an email when submitted. I was recommended to use the Contact Form plugin. I have already set it up, and am trying to submit the form, when I get ...
1
vote
1answer
20 views

Discount for subscription plans?

In the CP there are discounts that are applied to products in cart. Is there an option in the CP to apply discounts to subscription plans or would this need to be done by creating a module? Just need ...
1
vote
1answer
27 views

Disabling caches in Safari results in server errors while developing Craft 3 site

I'm running into a vexing issue while developing a personal site in Craft. I have a new Craft 3 site, installed manually. I'm developing live on the server in a dev subdomain. My .env sets the site to ...
1
vote
1answer
28 views

Project Config On or Off for Production Server

Should Project Config ('useProjectConfigFile' => true,) be set to 'true' or 'false' on the Production server? I have been reading Craft CMS documentation, watching some CraftQuest Lessons, searching ...
0
votes
1answer
19 views

How do I upgrade the MYSQL database from Craft 2 to Craft 3 on GoDaddy

How do I upgrade my MySQL DB for a Craft 2 site to Craft 3. I don't have access to the SSH server or use of Composer, so I have to move files via FTP and do everything manually. My client is on ...
1
vote
2answers
23 views

Importing voucher codes from Espresso Store to Verbb Gift Vouchers

I'm doing some messing with MySQL to import some Espresso Store voucher codes into a Craft Commerce site as Verbb Gift Vouchers. I've got a long query that basically reads the data from the EE table(...
0
votes
0answers
21 views

Inconsistency in Channel Section Type of Craft3

I'm trying to mess around the Entry URI Format and the Template trying to understand how it work. Using the News settings below, when I access the http://site.dev/news/save-our-seas, it's working fine ...
1
vote
1answer
20 views

What does update actually do?

Upon updating CraftCMS via CP > Utilities or Terminal, does this update only the vendor folder? Or does it also change structure in the DB and other files outside the vendor?
0
votes
0answers
14 views

Paypal Express, Commerce 3.0, more information on Paypal Invoice

Using Craft 3.4.9 and Commerce Pro 3.0.11 What's the best way to get more information onto a Paypal invoice so that I can match Paypal data with a Craft Commerce order? Does anyone have some success ...
1
vote
1answer
29 views

Where is this spam message sent using the Contact Form plugin?

I've noticed all of my Contact Form spam has a referrer that matches the form's location. Building a module is out of my comfort zone for now (not really a developer). I am currently using the ...
1
vote
1answer
19 views

How to reference a folder inside of a volume, Craft 3

How do I reference a specific folder (by name) inside of a specific volume. I cannot use the folder ID, I must use the folder name because the name of the folder is a variable related to specific ...

1
2
3 4 5
30