Download the PHP package networkteam/neos-selectivemaintenance without Composer
On this page you can find all versions of the php package networkteam/neos-selectivemaintenance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download networkteam/neos-selectivemaintenance
More information about networkteam/neos-selectivemaintenance
Files in networkteam/neos-selectivemaintenance
Package neos-selectivemaintenance
Short Description Enable maintenance mode for specific documents in your page tree.
License MIT
Informations about the package neos-selectivemaintenance
Networkteam.Neos.SelectiveMaintenance
Enable maintenance mode for specific documents in your page tree.
Installation
Add this package to composer.json
of your site package.
Run node migration for adding default values.
Configuration
This package provides a processor for which replaces the common content with maintenance content. First of all you have to decide, at which position of your sites layout you'd like to render the maintenance content. Some examples are:
- Replacing complete body
- Replacing main content only, for still showing navigation and footer
Take a look into the Neos demo package. It provides several page types. Some of them are:
- Page
- Landingpage
- Chapter
- Base
Replacing complete body
If you would like to replace the complete body for a page being in maintenance, add the processor to base document
(Neos.Demo:Document.Base
)
Packages/Sites/Neos.Demo/Resources/Private/Fusion/Document/Base.fusion
Replacing main content only
For replacing main content only, you'll have to adjust each document separately.
Add the processor to the mainContent
property. The example below shows the default page. Some procedure applies to
the other documents.
Packages/Sites/Neos.Demo/Resources/Private/Fusion/Document/Page.fusion
Usage
- Create a page with maintenance information in your page tree, somewhere.
- Select the page which should be in maintenance mode.
- Enable maintenance mode and set previously created page as maintenance page