2017 © Pedro Peláez
 

neos-package movealong

Configure fallback url-pathes that are evaluated in case of 404

image

sitegeist/movealong

Configure fallback url-pathes that are evaluated in case of 404

  • Tuesday, July 17, 2018
  • by sitegeist
  • Repository
  • 6 Watchers
  • 6 Stars
  • 5,519 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 12 Versions
  • 33 % Grown

The README.md

DEPRECTAED The solution was added to the Neos Core in version 4.3 see https://neos.readthedocs.io/en/stable/Appendixes/ReleaseNotes/430.html?highlight=error#native-404-error-rendering-that-can-be-controlled-via-fusion

Sitegeist.MoveAlong

Render 4xx status pages via fusion, (*1)

Configuration

The status codes that are handled via fusion error-rendering can be controlled via settings., (*2)

Neos:
  Flow:
    error:
      exceptionHandler:
        renderingGroups:
          notFoundExceptions:
            matchingStatusCodes: [ 403, 404, 410 ]

The fusion code that actually renders the error-message., (*3)

#
# Main error matcher
#
error = Neos.Fusion:Case {

    #
    # Find the document to render in case of 404
    #
    @context.notFoundDocument = ${q(site).children('[instanceof Neos.Neos:Document]').filter('[uriPathSegment="404"]').get(0)}

    #
    # Custom matcher for 404 status
    #
    4xx {
        @position = 'start'
        condition = ${statusCode >= 400 && statusCode < 500 && notFoundDocument}
        renderer = Neos.Fusion:Renderer {
            @context.node = ${notFoundDocument}
            @context.documentNode = ${notFoundDocument}
            renderPath = '/root'
        }
    }

    #
    # Default rendering of classic error-message
    #
    default {
        @position = 'end 9999'
        condition = true
        renderer = Sitegeist.MoveAlong:ErrorMessage
    }
}

Authors & Sponsors

  • Wilhelm Behncke - behncke@sitegeist.de
  • Martin Ficzel - ficzel@sitegeist.de

The development and the public-releases of this package is generously sponsored by our employer http://www.sitegeist.de., (*4)

Installation

Sitegeist.MoveAlong is available via packagist. Just run composer require sitegeist/movealong. We use semantic-versioning so every breaking change will increase the major-version number., (*5)

License

see LICENSE file, (*6)

The Versions

17/07 2018

2.1.1.x-dev

2.1.1.9999999-dev

Configure fallback url-pathes that are evaluated in case of 404

  Sources   Download

MIT

The Requires

 

17/07 2018

v2.1.1

2.1.1.0

Configure fallback url-pathes that are evaluated in case of 404

  Sources   Download

MIT

The Requires

 

14/05 2018

dev-master

9999999-dev

Configure fallback url-pathes that are evaluated in case no other route matches

  Sources   Download

MIT GPL-3.0-or-later

The Requires

 

14/05 2018

v4.0.0

4.0.0.0

Configure fallback url-pathes that are evaluated in case no other route matches

  Sources   Download

GPL-3.0-or-later

The Requires

 

14/05 2018

dev-bugfix/requireNeos

dev-bugfix/requireNeos

Configure fallback url-pathes that are evaluated in case no other route matches

  Sources   Download

GPL-3.0-or-later

The Requires

 

14/05 2018

v3.0.1

3.0.1.0

Configure fallback url-pathes that are evaluated in case no other route matches

  Sources   Download

MIT

The Requires

 

11/05 2018

dev-mficzel-patch-1

dev-mficzel-patch-1

Configure fallback url-pathes that are evaluated in case no other route matches

  Sources   Download

MIT

The Requires

 

16/01 2018

v3.0.0

3.0.0.0

Configure fallback url-pathes that are evaluated in case no other route matches

  Sources   Download

MIT

The Requires

 

12/07 2017

v2.1.0

2.1.0.0

Configure fallback url-pathes that are evaluated in case of 404

  Sources   Download

MIT

The Requires

 

12/07 2017

dev-feature/add410Support

dev-feature/add410Support

Configure fallback url-pathes that are evaluated in case of 404

  Sources   Download

MIT

The Requires

 

20/02 2017

v2.0.0

2.0.0.0

Configure fallback url-pathes that are evaluated in case of 404

  Sources   Download

MIT

The Requires

 

08/06 2016

v1.0.0

1.0.0.0

Configure fallback nodes in case of 404

  Sources   Download

MIT

The Requires