Adding lazy-load version of feed component to load data using AJAX after page content has been rendered.
This commit is contained in:
19
www/plugins/jasonwilliams/feed/controllers/Channels.php
Normal file
19
www/plugins/jasonwilliams/feed/controllers/Channels.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php namespace jasonwilliams\feed\Controllers;
|
||||
|
||||
use Backend\Classes\Controller;
|
||||
use BackendMenu;
|
||||
|
||||
class Channels extends Controller
|
||||
{
|
||||
public $implement = [ 'Backend\Behaviors\ListController', 'Backend\Behaviors\FormController', 'Backend\Behaviors\ReorderController' ];
|
||||
|
||||
public $listConfig = 'config_list.yaml';
|
||||
public $formConfig = 'config_form.yaml';
|
||||
public $reorderConfig = 'config_reorder.yaml';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
BackendMenu::setContext('jasonwilliams.feed', 'main-menu-item');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user