Truncate Django CMS Placeholder
As you've seen, you can't truncate a placeholder, as a placeholder's job is simply to render content plugins that are added to it.
Your only viable option is to truncate the field in the render template of the plugin, or to add a separate field on your model that can store the truncated text. Such a field could be populated automatically using a post_save signal handler.
I'm creating my own Django CMS blog plugin. I'm using a placeholder to hold the full content of the blog entry and I'm trying to figure out how to automatically create an excerpt from this placeholder.
If it were simply a text field I know I could use "|truncatechars:15" in the template, but I don't know how to do this for a placeholder.
Is there something I can use in the template or in the 'views.py' in order to truncate the placeholder?
Thanks in advance.