Most Popular

1500 questions
4
votes
1 answer

Craft CMS V3 Create New User

Having difficulties creating a new user in a custom controller, here's my implementation: use craft\records\User; $user = new User; $user->firstName = $userData['firstName']; $user->lastName = $userData['lastName']; $user->username =…
4
votes
1 answer

Search Results In a Drop List/Popup on Same Page

Does anyone have an example how I would implement search results that appear in a popup on the same form (without redirecting to a results page). The idea would be that as they start to type in the search bar, after a delay I'd show a popup with a…
Tim
  • 355
  • 1
  • 8
4
votes
1 answer

Register JS files at the end of the body tag in the Control Panel

I would like to add my own external JS sources at the very end of the body tag in the Craft control panel. I've already tried using: {% do view.registerJsFile("", {position:3}) %} according to…
4
votes
1 answer

User Registration Form error message customisation

Where can I edit the error messages for the user registration form e.g for {% if account is defined %} {{ _self.errorList(account.getErrors('email')) }} {% endif %} I want to change this wording: Email "tom.bowler@mailbox.net" has already been…
Simon Clayson
  • 611
  • 3
  • 11
4
votes
1 answer

How should one go about using Craft with Git? [not duplicate]

I've seen many other questions about Craft deployment, some of which even use Git, but none seem to thoroughly address how one would use version control on their local development environment, push changes to a remote repository, and then pull…
Anonymous
  • 95
  • 5
4
votes
3 answers

Creating comments via a related section

I've been reading on here about suggestions on implementing commenting systems. I'm aware of disqus integration but I want/need built in commenting. I have seen it mentioned a couple of times that one approach would be to create a section…
shorn
  • 438
  • 2
  • 9
4
votes
1 answer

How can I time-profile the page load for a Craft request?

I would like to see how long plugins take to load, as well as other aspects of the page (loops and database requests). My webpage can take ~2-3 seconds to return the initial request. It seems high and I'd like to figure out how I can optimize…
Jason D
  • 1,132
  • 1
  • 9
  • 17
4
votes
2 answers

Can't update to 3.1.x

I'm in a multi config env, local, staging & production. I sync my databases down to local then usually update locally, then push to staging and check again before going live. The recent 3.1 updates aren't working for me. Usually, I go thru the…
joomkit
  • 2,014
  • 1
  • 13
  • 24
4
votes
1 answer

Website taking 30+ seconds to load

One of my Craft websites is taking a long time (30+ seconds) to load. The /admin area also loads slowly. I have other installs of Craft on the same server that don't experience this problem. Are there any debugging tools built into Craft to see…
Jason D
  • 1,132
  • 1
  • 9
  • 17
4
votes
2 answers

"Craft CMS does not support backtracking to this version. Please upload Craft CMS 0 or later."

I have a problem related this and this question. I began updating a long time ago (2017?) and got the error "Craft CMS does not support backtracking to this version. Please upload Craft CMS 0 or later" when I try to access the site or admin. I'm…
Lauren
  • 171
  • 6
4
votes
2 answers

How do you set a flash message in the template in Craft 3?

How does one set a flash message in the templates? I can't find any documentation about this, only for plugins or getting the message. My use-case is, I am checking if a user is allowed to access a certain page and if they cannot I want to set a…
Laurence Cope
  • 512
  • 3
  • 12
4
votes
1 answer

Feed Me: How to format CSV data for a table field

Similar to the other post Feed Me: How to format JSON for a table field. I'm looking for a solution on how to format the CSV field so I can import it as a table field. Basically I have a list of products and each product has multiple serial numbers…
Tim Knight
  • 1,022
  • 8
  • 17
4
votes
1 answer

Adding a drop-down to Contact Form plugin

The GitHub page shows how to add additional fields as input fields or checkboxes. But I can't figure out how to add drop-down fields. Is this possible?