Introduction

Craft 3, Craft 3, and Craft 3. Plus news, tips, plugins and more.

Craft 3 is here! It's no surprise that means a newsletter full of Craft 3 goodies. Have a link suggestion for a future issue? Submit one here.

Thanks to Solspace for sponsoring this issue. Their power-tool plugins Freeform 2 and Calendar 2 are available for Craft 3.

Let's hit the links.

-John Morton

Craft Link List  

Top Stories



News




Featured Sponsor

Tools, tips, and fundamentals













Stack Exchange / Craft 3 / Slack pro tip

Pro tip for using Stack Exchange: If you tag your Stack Exchange posts with craft3, they’ll get pumped into #craft3-help channel in the Craft Slack group.

Craft Link List  

Perfecting your technique

What’s the right way to add a custom event in Craft 3?

Several weeks ago, creating custom events in Craft 3 plugins was discussed. P&T’s Mailer.php was referenced as an example. Here are the basics of what you’d do.

1. Create an Event events/YourEvent

2. Create an instance of that event in your code

$event = new YourEvent([ 'entry' => $entry ]);

3. Trigger the event: $this->trigger(SomeClass::EVENT_CONSTANT, $event);

Craft Link List  





Sponsor

Plugged In














Yii, Twig, PHP & More

It’s not Craft, but it’s interesting.