This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Maz
Maz

Hi

I'm used Cyd293.Backendskin plugin to modify the layout of the backend. But now I want to modify the RainLab.Blog pages template to simplify it, for example, "auto-check" the "Published" checkbox with field auto-filled with now() method.

I read about how to extend backend views, how to extend plugins, in docs, forums, but I can't find any resource to learn how to properly extend the views.

For now I tried this (with no success):

<?php namespace RomainMazB\BlogExtend;

use System\Classes\PluginBase;
use Event;

class Plugin extends PluginBase
{
    public function boot()
    {
        Event::listen('backend.list.extendColumns', function($list) {
            if (!$list->getController() instanceof \RainLab\Blog\Controllers\Posts) {
                return;
            }
            $list->customViewPath = plugins_path().'/romainmazb/blogextend/views/posts/index';
        });
    }
}

Thanks for any advice!

Last updated

Maz
Maz

No suggestions? As default, list partial is rendered and I don't want to modify it because I want some other lists to be rendered with it.

I want to specify "render blog post with tiles partial". I found a tiles plugin but as expected, it modifies the list partial ;/

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.