I already posted a teaser on Wednesday about the upcoming beta for 2.3.0 on Twitter and I’m glad that I can now finally publish it \o/
It’s another big step ahead and I can’t wait to hear what you think about it.
We are actively looking for feedback and testers who throw this at their existing sites (on a local machine, please) to report all sorts of bugs before the final release.
Please use this thread for your comments and the Github issues for bug reports.
We prepared a quite massive changelog for you to check out all the new stuff and we’ve also prepared a pretty fancy new “Upcoming…” page, which sums up everything for you: https://getkirby.com/upcoming
You will also find the first docs for the upcoming version on there. We overhauled the docs system in the background, to be able from now on, to mark changes with version numbers and give you a better overview what has changed and when.
The changelog (and some tweets) suggest in 2.3 one can add a template engine. I’d like to play around with this and try to plug in Twig. Any pointers on how to do that on the Kirby side?
(I know enough PHP and have used the Twig library so I’m good on this side. Just wondering if the changelog/tweets meant there are some hooks provided.)
The template engine is now a component. You can create your own class based on that class and register it using kirby()->component('template', 'YourClassName').
What a treat! Love the new handling of thumbs and the way they are stored now. And that the generation of thumbs is not blocking anymore is pure magic. Thanks a lot!
Don’t be too sad about your favorite missing feature We work on so much stuff in parallel and sometimes it’s really just important to wrap it up at some point and bundle it into a new release before moving on. The new component and registry structure will make new stuff so much easier for us and for you and I’m very confident, that we will soon have some stuff to make you happy
Are you sure you want to assign to a variable inside a condition? If you do that the condition will always be true, so using if(){} seems useless here (but maybe that’s a PHP trick I’m not familiar with).
The thumb()method is not implemented for the Media class, but only for the file class. The user avatar, however, is an object of type Media, not of type File.