Skip to main content

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
1 vote
1 answer
152 views

Plugin settings per site/locale

I'm trying to make a plugin in Craft 3 but want it to be possible to set different settings for each separate site or locale. How would I go about doing this?
Rias's user avatar
  • 171
1 vote
1 answer
2k views

Craft CMS login 500 (Internal Server Error)

I transferred a website using Craft CMS and now when I want login to admin the console return me jquery-2.2.1.min.js?d=1493126871:4 POST http://website.com/index.php/admin/actions/users/login 500 (...
jonh's user avatar
  • 11
1 vote
1 answer
766 views

Commerce plugin in Craft 3?

I am looking at Craft Commerce (https://craftcommerce.com/) and I am wondering if anyone has any experience using this in Craft 3? Seems like it is only for 2.x for now. I am struggling to find any ...
laden's user avatar
  • 63
4 votes
0 answers
872 views

How to handle Craft 3 events in a plugin? Element API is returning null data

The below refers to Craft 3 and the Element API plugin for Craft 3. I would like to do something when the Element API plugin fires its onBeforeSendData event, I can see in the controller for element ...
Paul Blundell's user avatar
5 votes
3 answers
1k views

Private plugin distribution in Craft CMS 3

what is the best way to install private plugin in Craft CMS 3? The private plugin is installed in private GitHub repo, but we don't have a custom packagist that we would use, therefore I wonder if ...
PeterBocan's user avatar
8 votes
5 answers
3k views

Has someone figured out Craft 3 content migrations?

One of the big features for craft 3 is content migrations. Migrating fields and sections between environments (like deploying code to test or production). I'm just having a hard time figuring out what ...
Roel's user avatar
  • 148
2 votes
4 answers
306 views

Excluding an include template

is there a simple way to exclude an 'include' for specific pages? For instance I have an include {% include "_globals/_footer" %} but I don't want it to appear on my contact and 404 pages. How ...
Spheriri's user avatar
  • 132
7 votes
3 answers
5k views

Multi-site setup in Craft3

Hi guys are the any more detailed tutorials on how to setup a multi site on Craft3 BETA? I created two sites now, a Danish and English through the admin (Settings → Sites). The domain is the same but ...
trustkool's user avatar
3 votes
1 answer
586 views

500 Error with no details on site migration

I'm trying to migrate my site from a PHP5.6 host to a PHP 7 host in preparation for Craft 3. I've copied everything across and am trying to load an exact copy of the production site on a different ...
Trev Dev's user avatar
2 votes
3 answers
804 views

Craft 3 Call Own Service

I created a plugin for Craft 3 at pluginfactory.io. I want to call it in my template variable public function exampleVariable() { // hint AdminBar::$plugin->editLinks->exampleService() ...
Simon Müller's user avatar
5 votes
3 answers
5k views

Setting the Homepage URL in Craft 3

This seems like an odd question, but I've looked through the documentation, Slack, and the StackExchange and it's weird that I'm not seeing anything... so I feel like I'm overcomplicating it. How do ...
Tim Knight's user avatar
  • 1,022
1 vote
0 answers
482 views

Retrieving custom settings in Craft 3 plugin [closed]

I'm trying to retrieve the settings that a user sets in a Craft 3 plugin. The method I used in Craft 2 plugins doesn't seem to work anymore. To demonstrate the problem, I'd made a plugin and uploaded ...
John Morton's user avatar
2 votes
1 answer
1k views

Git configuration for CraftCMS

Please excuse this newbie question (newbie to Git that is). I'm trying to set up my CraftCMS environments with Git and wonder about best practices and how others configure your repositories. In ...
userAW's user avatar
  • 176
3 votes
1 answer
59 views

Can someone explain to me the difference between 'not' and without?

Here is an example of code I'm trying to use to eliminating have to iterate comparing the current entry.title to the related to entry.title then omitting it. {% set entries = craft.entries.relatedTo(...
LucasMaliszewski's user avatar
3 votes
1 answer
106 views

Obtain suspended users in Craft3 Dev Preview

So I'm running into an issue where I'm given the users email. From there, I use the following code: Craft::$app->getUsers()->getUserByEmail($email);. This returns a null value, not because the ...
LucasMaliszewski's user avatar
1 vote
3 answers
364 views

Obfuscating email set by global variable

Is there a way to obfuscate an email address link that's generated by a global variable? I tried using Sprout's Encode Email, but it doesn't seem to work with an email address I've generated by a ...
Jay's user avatar
  • 11
3 votes
1 answer
460 views

Multi sites: should I use Craft 2 locales, or go with Craft 3 alpha?

I have a couple of imminent projects that will need some type of multi-site support. One is a large project that will need to share data between at least 3 sites. Where data is entered in one site and ...
glider's user avatar
  • 647
9 votes
3 answers
1k views

New Project: Wait for Craft 3 or start now with Craft 2?

I am just about to start a new project and Craft seems the best fit as a CMS. The projects timescale is 3 months. I understand that a beta for Craft 3 is due out at the end of this year (2016). In ...
Luke Clifton's user avatar
1 vote
1 answer
511 views

Craft 3 doesn't see my Commerce plugin

I am running a local install of Craft 3 Pro dev preview using MAMP and Sequel Pro on my iMac. I downloaded the Commerce plugin to try it out and dropped the 'commerce' folder into my craft/plugins ...
Tig's user avatar
  • 11
4 votes
2 answers
320 views

How long will it take Pixel and Tonic to release Craft 3?

I am just wondering, when will Pixel and Tonic release Craft 3 stable version?
postsrc's user avatar
  • 227
1 vote
3 answers
716 views

Local install does not start, PDO Exception

I wanted to install a single instance of craft on my local machine. However upon starting the installation via calling /admin/ or /admin/install, the only message I get, is SQLSTATE[3D000]: Invalid ...
Björn K's user avatar
0 votes
1 answer
442 views

I can't add a body field?

I have made a new "section" called Blog. In the dashboard I now have a quick post panel but I can only input a title and nothing else? How can I add the ability to have a body etc?
Jack Sewell's user avatar
1 vote
1 answer
775 views

400 error on Craft 3 installation

When I try to install Craft CMS 3 by going to /admin the site redirects me to /index.php?p=admin/install where the Begin button shows. Clicking next send me to the screen to create an admin user. ...
svetlin's user avatar
  • 11
1 vote
1 answer
616 views

CraftCMS 3 - Composer Update

How can I update all the packages under craft/app/vendor for Craft CMS 3 (Yii 2)?
David Yew's user avatar
  • 131
0 votes
1 answer
118 views

How to limit selected items that appear on special page

I have a client that wants to select "featured" entries to appear on their home page, and in a specific order that they can set and change. My initial idea was to set up a featured check box and just ...
Rockwell Rice's user avatar
0 votes
1 answer
81 views

sendEmail messages not being received by Exchange server

I've been able to get this to work with my gmail address but not my work's Exchange email account. How can I make this receivable by exchange mail servers? $email = new EmailModel(); $email-&...
Thomas's user avatar
  • 183
1 vote
1 answer
287 views

How to grab all images from and section

I am sure this must be answered somewhere and I cannot find it. I need to grab all images from a section (channel) and display them in a slide show on the index page (index page is a single,so index ...
Rockwell Rice's user avatar
5 votes
0 answers
438 views

How to load components into Craft 3 plugin?

what is the correct way to load third-party components into Craft 3 plugin I'm developing? I tried adding $this->setComponents([ 'authClientCollection' => [ 'class' => '\yii\...
Yuri Salimovskiy's user avatar
5 votes
1 answer
3k views

Unable to locate message source for category ''

I'm trying to update my plugin to Craft 3 and I'm getting this error message: Unable to locate message source for category ''. What does it mean?!
Ben Parizek's user avatar
  • 13.5k
16 votes
2 answers
2k views

Are there any plugins for Craft 3?

Are there any Craft 3 plugins yet? They would be useful as examples for porting/writing other Craft 3 plugins.
8 votes
5 answers
3k views

How do you set a user's group on a registration form?

In a registration form with public signup possible, how do you set the user group for a particular form? As a stop-gap I am attempting to use the following code: function init() { craft()->on(...
Luke Holder's user avatar
  • 6,837

1
35 36 37 38
39