I’m setting up my first Kirby site. Loving it until now. (and love the fact that I can use Blade templating ;-))
I have a problem with the new editor though. Probably something simple but can’t seem to get my head around it.
I’m using pages as sections that you can fill up with the new editor but when i echo $page->text()->blocks() or $page->text()->blocks()->html() I get nothing. Although if I var_dump them I do get something back.
I’ll elaborate a bit on my setup. (btw, it’s not the blade engine, I also tried everything with just simple php tags & echo’s)
Does it work if you do without using Blade in your templates? Im gussing Blade is interfering somehow.
Oh… just noticed you tried that. Hrm. Is everthing up to date? What server are you using? What php are you using? When you say you tried it without Blade, did you just not use blade in the templates, or completly remove the blade plugin? i would think the code still goes through the blade plugin even if you dont use it in the templates because it will still be looking for blade tags to process.
Yeah, might stop using it, It adds a extra layer of things that can go wrong… I tried the other blade plugin and that gives an " Fatal error : Cannot redeclare e()…" because of the Illuminate\Support functions.
(Tip for you guys, maybe you can add a if(!function_exists(‘e’)) arround the e() helper in kirby/config/helpers.php ;-))