Skip to content

Neos CMS package that loads a normal editable page for displaying a 404 error

License

Notifications You must be signed in to change notification settings

KaufmannDigital/MOC.NotFound

 
 

Repository files navigation

MOC.NotFound

Scrutinizer Code Quality Latest Stable Version Total Downloads License

Introduction

Neos CMS package that loads a normal editable page for displaying a 404 error.

Compatible with Neos 2.x, 3.x

Supports multiple content dimensions with URI segments and empty segments for default dimensions.

Installation

composer require "moc/notfound:^3.0"

Create a page with the URI segment "404" in the root of your site. If using content dimensions with URI segments, ensure a page exists in all contexts or through fallbacks.

Alternatively set the following configuration in Settings.yaml:

Neos:
  Flow:
    error:
      exceptionHandler:
        renderingGroups:
          notFoundExceptions:
            options:
              variables:
                path: '404.html' # skip suffix if unset

Note: If you override the configuration in a package's configuration instead of globally, you need to ensure that package is loaded after this package. To do so, add "moc/notfound": "*" to the package's require section in it's composer.json.

About

Neos CMS package that loads a normal editable page for displaying a 404 error

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 97.6%
  • HTML 2.4%