© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
21 replies
Mocus

Add info list to Page (with no resource)

I've read through the docos ...

i've created a page with no resource and edited the pages/page.php like so

<?php

namespace App\Filament\App\Pages;

use Filament\Infolists\Components\TextEntry;
use Filament\Infolists\Infolist;
use Filament\Pages\Page;

class bpa extends Page
{
    protected static ?string $navigationIcon = 'heroicon-o-document-text';

    protected static string $view = 'filament.app.pages.bpa';

    public static function infolist(Infolist $infolist): Infolist
    {
        return $infolist
        ->state([
            'name' => 'MacBook Pro',
            'category' => [
                'name' => 'Laptops',
            ],
            // ...
        ])
        ->schema([
            TextEntry::make('name'),
            TextEntry::make('category.name'),
            // ...
        ]);
    }
}
<?php

namespace App\Filament\App\Pages;

use Filament\Infolists\Components\TextEntry;
use Filament\Infolists\Infolist;
use Filament\Pages\Page;

class bpa extends Page
{
    protected static ?string $navigationIcon = 'heroicon-o-document-text';

    protected static string $view = 'filament.app.pages.bpa';

    public static function infolist(Infolist $infolist): Infolist
    {
        return $infolist
        ->state([
            'name' => 'MacBook Pro',
            'category' => [
                'name' => 'Laptops',
            ],
            // ...
        ])
        ->schema([
            TextEntry::make('name'),
            TextEntry::make('category.name'),
            // ...
        ]);
    }
}
but this isnt displaying, i get the nav link fine thou
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Custom page before list resource
FilamentFFilament / ❓┊help
2y ago
Resource list page emptyStateActions action
FilamentFFilament / ❓┊help
3y ago
Add settings page to a resource
FilamentFFilament / ❓┊help
2y ago
Extend a Resource List Page in another Resource Custom page
FilamentFFilament / ❓┊help
3y ago