ProBlog

A powerful October CMS Blog plugin. Boost your SEO with robust blogging tools by Radiantweb.

Back to ProBlog Support

paulgrafx
paulgrafx

I am using the [[partial::dataTableOutput]] in my posts.

[[partial::dataTableOutput]]

And using the output on my partial.

{% set content_parsed = parseBlogPost(post_item.content) %}

{% if content_parsed %}
    {% for content in content_parsed %}
        {{ content|raw }}
    {% endfor %}
{% endif %}

But I am getting the output... An exception has been thrown during the rendering of a template ("Array to string conversion").

paulgrafx
paulgrafx

SOLVED: I have updated the code below and now it works fine.

The most important part being...

{% elseif content|length %}
{% set content_parsed = parseBlogPost(post_item.content) %}

{% if content_parsed %}
    {% for content in content_parsed %}
        {% if content.partial %}
            {% partial content.partial %}
        {% elseif content|length %}
            {{ content|raw }}
        {% endif %}
    {% endfor %}
{% endif %}

Last updated

1-2 of 2