Please forgive, this may be simple, but I’m a noob. My blog excerpts are not displaying properly. I implemented the Kirby Editor plugin, which is working well. But on my Articles page i’m getting additional text in the excerpt. see image below.
Yeah, ugh. It’s wierd. That was first thing I had tried like below… but was throwing an error. now it’s working. Not sure why. maybe I was using block() instead of blocks()
Then that’s not the Editor plugin, but the new layout field. The Editor plugin is not really compatible with Kirby 3.5.x (at least not at the moment).
There is no method to get an excerpt directly from the layout field. You would have to get the first layout element, then when you call toBlocks() on the first column, you could get an excerpt.
This is the standard code to display the contents of a layout field on the frontend: