October CMS resources and help articles

Simple and to the point. Optimized by the community.

Use October's AJAX-Framework Extras in the Backend

by OFFLINE, last modified on April 9th, 2021

To use the {% framework extras %} in your backend you have to include the CSS and JS files in your Controller.

class YourController extends Controller
    public $implement = [

    public $formConfig = 'config_form.yaml';
    public $listConfig = 'config_list.yaml';

    public function __construct()

        BackendMenu::setContext('YourVendor.YourPlugin', 'your-main-menu', 'your-sub-menu');

        // Include framework extras.

If you don't need the extras on every page the Controller handles, you can of course also add them to the update or create method only.

If you need the extras on every page in the backend, you can add the JS file and CSS file by using events. Add the following code to the boot method of your Plugin.php file.

Event::listen('backend.page.beforeDisplay', function ($controller, $action, $params) {



We use cookies to measure the performance of this website. Do you want to accept these cookies?