I’m using Sage 10.0.0-dev, latest available in the repo today.
I came across this page:
After adding the filter to
/app/filters.php, the localhost page reloaded in my browser, I looked at a blog post and the 404 page, sidebar is still missing.
I looked for documentation to see what I’m missing but didn’t find much that was helpful. Does the filter need to be called somewhere? In a controller maybe?
So, as I just hinted, I then went to
/views/index.blade.php, I see how the sidebar is added using different code.
@section('sidebar') @include('partials.sidebar') @endsection
When I applied this to either
404.blade.php, the sidebar appears.
Am I missing some documentation to understand how to apply the sidebar filter example? Considering I could be interested in adding a sidebar to more than just posts and 404 pages, a filter makes more sense to have everything in one place. I appreciate your answers!