Skip to content

Is it possible to add content on the somewhat unused right side of edit page? #981

Answered by pboivin
adam-jones-net asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Arkid,

This is not yet well documented but there are a few Blade sections you can use to inject content into your CMS pages. The one you are looking for is sideFieldsets :

resources/views/admin/mymodule/form.blade.php

@extends('twill::layouts.form')

@section('contentFields')
    ...
@stop

@section('sideFieldsets')
    <div>
        HELLO WORLD!
    </div>
@stop

To get an overview of what's available, you can search for @yield in the Twill source code (under views/layouts/).

Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@adam-jones-net
Comment options

Answer selected by adam-jones-net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants