In-context editable blog

In-context content editor for RainLab Blog

Back to In-context editable blog Support

benm
benm

The regular blog component requires that category page be set 'blog-category'. When I use the editable_blog component instead it refuses to take any category setting. Without that I get an exception error when I try to load a post.

I don't know exactly what I'm doing wrong, maybe it's incompatible with the latest build of Octobercms which is at 350 now.

pawel samysev
pawel samysev

Hello. Yes, current version of editable is incompatible with the latest build of Octobercms. I need a pair days for fix it.

benm
benm

ok thanks, would you mind posting here when you have an update ready?

pawel samysev
pawel samysev

Yes, i post news about updating at this page

pawel samysev
pawel samysev

I fix that bug. Please check it.

benm
benm

Sorry for such late reply just wasn't able to get to it. So not sure what's going on here but still getting exception error. I was able to set the component for a blog post page which looks like:

[editable_blog]
slug = "{{ :slug }}"
categoryPage = "blog-category"

And then in a loop I try to print it the same way that I am able to print a regular blog record:

{% component 'editable_blog' %}
{% set post = editable_blog.post %}
<div class="row post">
        {% if post.featured_images.count %}
        {% partial 'modal-single.htm' %}
        <img  id="modal-image" data-src="{{ post.featured_images.0.filename }}" src="{{    post.featured_images.0.getThumb(448, 420) }}"
          alt="{{ image.description }}" class="post-image col-sm-4"/>
    {% endif %}
    <h2>{{ post.title }}</h2>
    <div class="byline">
        {% if post.categories.count %}
            Posted in
            {% for category in post.categories %}
            <a href="{{ category.url }}">{{ category.name }}</a>{% if not loop.last %}, {% endif %}
            {% endfor %}
        {% endif %}
        on {{ post.published_at|date('M d, Y') }}
    </div>
    {{ post.content_html|raw }}
    {% for category in post.categories %}
        <h3><a href="{{ category.url }}">More {{ category.name }}</a>{% if not loop.last %}, {% endif %}</h3>
    {% endfor %}
</div></code></pre>

I am still getting the same excepti error: Call to a member function pageUrl() on null /Users/username/Sites/my_site/plugins/rainlab/blog/models/Category.php line 74

Last updated

mstranieri
mstranieri

Me too: Call to a member function pageUrl() on null.

pawel samysev
pawel samysev

Sorry for a huge delay. I fix that bug at 1.0.3 version. Please update

1-8 of 8