Theme Structure
Directory Layout
themes/
└── my-theme/
├── template.json # Required: Theme metadata
├── bundles/
│ ├── EasyAdminBundle/ # Global EasyAdmin template overrides
│ │ ├── layout.html.twig
│ │ ├── crud/
│ │ │ ├── index.html.twig
│ │ │ ├── detail.html.twig
│ │ │ ├── edit.html.twig
│ │ │ └── new.html.twig
│ │ ├── menu.html.twig
│ │ └── page/
│ │ └── content.html.twig
│ └── TwigBundle/ # Exception/error pages
│ └── Exception/
│ ├── error.html.twig
│ └── error404.html.twig
├── components/ # Reusable components
│ └── header/
│ └── navbar.html.twig
├── email/ # Email templates
│ ├── base.html.twig
│ ├── registration.html.twig
│ ├── password_reset.html.twig
│ └── payment_confirmation.html.twig
└── panel/ # Panel templates
├── base.html.twig # Base layout
├── crud/ # Per-CRUD overrides
│ ├── product/
│ │ ├── edit.html.twig
│ │ └── index.html.twig
│ ├── user/
│ │ └── detail.html.twig
│ └── server/
│ └── show.html.twig
├── dashboard/ # Dashboard pages
│ └── index.html.twig
├── servers/ # Server pages
│ ├── index.html.twig
│ └── show.html.twig
└── cart/ # Shopping cart pages
└── index.html.twigTheme Contexts
Context Resolution
Assets Structure
Template Categories
1. Global Templates (bundles/EasyAdminBundle/)
bundles/EasyAdminBundle/)2. Exception/Error Templates (bundles/TwigBundle/)
bundles/TwigBundle/)3. Reusable Components (components/)
components/)4. Per-CRUD Templates (panel/crud/{entity}/)
panel/crud/{entity}/)5. Panel Templates (panel/)
panel/)File Organization Best Practices
Template Resolution
Related Guides
Last updated