linc yep, I've done this before. Unfortunately I can't share a link to the repo as it's closed source, but essentially:
- Create your new
blade
- Register using the extender (ensure you follow the same path structure as core uses ie
/frontend/forum.blade.php
)
(new Extend\View)->namespace("your_namespace", __DIR__."/views"),
- Set the content
(new Extend\Frontend('forum'))
->js(__DIR__.'/js/dist/admin.js')
->css(__DIR__.'/less/admin.less')
->content(function (\Flarum\Frontend\Document $document) {
$document->layoutView = "your_namespace::frontend.forum";
}),