whitecube / nova-page

Static pages content management for Laravel Nova
https://whitecube.github.io/nova-page
MIT License
238 stars 41 forks source link

@extends('layout') not found #58

Closed dotWaldemar closed 4 years ago

dotWaldemar commented 4 years ago
@extends('layout')

@section('pageName', 'some pageName')

@section('content')
    <h1>Section Content</h1>
@endsection

local.ERROR: View [layout] not found. I try @extends('nova::layout') but have the same error nova layout not found Here is my controller

    public function show(Request $request, Manager $page, Template $template)
    {
        $page->loadForRoute($request->route());

        return view('pages.about');
    }
voidgraphics commented 4 years ago

Hi @dotWaldemar, I doubt that this error has anything to do with this package.

Is there maybe a typo in your layout.blade.php file name?

dotWaldemar commented 4 years ago

I want to expand the basic template from nova

voidgraphics commented 4 years ago

Here's what I found.

I think you are confused about what this package does. It is meant to make your website's pages editable, it does not allow you to customise nova itself.

dotWaldemar commented 4 years ago

How can I extend the base nova template?

@extends('nova::layout') --- Extend base nova template

@section('pageName', 'Some title')

@section('content')
    Some content
@endsection
voidgraphics commented 4 years ago

What is the "base nova template"?

dotWaldemar commented 4 years ago

I want change just a content image

voidgraphics commented 4 years ago

Are you trying to make a tool?

dotWaldemar commented 4 years ago

the tool does not suit me