Hi @andrasv I’m still learning to code a theme from scratch too so not 100% on this, based on themes I’ve worked with, I think you need something more like this:
{{ mytitle|truncate(content.name|default(30)) }}
Maybe @Anton or @alyssamwilie could confirm, they’re both much more experienced with coding than I am.
Thank you, Anton, for your great help.
Yes, it is a custom module, which is called on a blogpost template. When I output the content.name, it rightly displays the blog title on the page. But when I try to use the truncate function on the content.name it doesn’t display anything.
The module.name is also not displaying anything, as it is not defined I guess.