2017 © Pedro Peláez
 

neos-plugin errorpages

image

breadlesscode/errorpages

  • Wednesday, December 27, 2017
  • by Marvvvv
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Deprecated in Neos 5
Please use Fusion error page rendering instead

Neos error pages

Latest Stable Version Downloads License GitHub stars GitHub watchers, (*1)

This package provides multiple error pages for your Neos CMS site. You can add an error page for each subfolder; this package shows the nearest error page from the entry point., (*2)

Installation

Most of the time you have to make small adjustments to a package (e.g., the configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site package located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:, (*3)

composer require breadlesscode/neos-error-pages --no-update

The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Your desired package is now installed correctly., (*4)

Usage

  1. Configure the node type
  2. Configure the fusion prototype
  3. Add one error page to your site root

Breadlesscode.ErrorPages:Page

The node type Breadlesscode.ErrorPages:Pagedoes inherit from Neos.Neos:Document. There are no child nodes defined, so if you want to add content elements to your error page, you have to add a ContentCollection to the node type., (*5)

'Breadlesscode.ErrorPages:Page':
  childNodes:
    main:
      type: 'Neos.Neos:ContentCollection'

To overwrite the document with your custom document you can do it like this:, (*6)

prototype(Breadlesscode.ErrorPages:Page) >
prototype(Breadlesscode.ErrorPages:Page) < prototype(Vendor.Foo:Page.Document)

Fusion path

errorPages is the fusion path which gets rendered if an error page gets shown. Make sure it has the same look as when you go directly to the page., (*7)

License

The MIT License (MIT). Please see License File for more information., (*8)

Contributors

The Versions

27/12 2017
26/12 2017
26/12 2017

dev-feature-multiple-pages

dev-feature-multiple-pages

  Sources   Download

MIT

The Requires

 

19/12 2017