Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
up:
comments: 'Changes the NodeType of the Page not found page to the newly introduced 404 document type'
migration:
-
filters:
-
type: NodeName
settings:
nodeName: 'Page not found'
transformations:
-
type: ChangeNodeType
settings:
newType: Neos.DocsNeosIo:Document.404


down:
comments: 'No down migration available'
25 changes: 25 additions & 0 deletions DistributionPackages/Neos.DocsNeosIo/NodeTypes/Document/404.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
'Neos.DocsNeosIo:Document.404':
search:
fulltext:
enable: false
childNodes:
main:
type: 'Neos.Neos:ContentCollection'
constraints:
nodeTypes:
'*': false
'Neos.DocsNeosIo:Content.Text': true

superTypes:
'Neos.Neos:Document': true
'Neos.Seo:NoindexMixin': true
'Neos.DocsNeosIo:Mixin.HideSeo': true
ui:
label: '404'
icon: 'fas fa-exclamation-triangle'
properties:
_hiddenInIndex:
defaultValue: true
ui:
inspector:
group: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prototype(Neos.DocsNeosIo:Document.404) < prototype(Neos.DocsNeosIo:Document.AbstractPage) {
body.navCollection = ${q(node).find('main').children()}
body.content = Neos.Fusion:Component {
main = Neos.Neos:ContentCollection {
nodePath = 'main'
}
renderer = afx`
{props.main}
`
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# for exceptions with 4xx status code
#
error {
@context.notfoundDocument = ${q(site).children('[uriPathSegment = "404"]').get(0)}
@context.notfoundDocument = ${q(site).find('[instanceof Neos.DocsNeosIo:Document.404]').get(0)}

4xx {
@position = 'start'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="" product-name="Neos.DocsNeosIo" source-language="en" target-language="de" datatype="plaintext">
<body>
<trans-unit id="properties.hideFromMainMenu">
<source>Hide from main menu</source>
<target>Im Hauptmenü verstecken</target>
</trans-unit>
</body>
</file>
</xliff>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file original="" product-name="Neos.DocsNeosIo" source-language="en" datatype="plaintext">
<body>
<trans-unit id="properties.hideFromMainMenu">
<source>Hide from main menu</source>
</trans-unit>
</body>
</file>
</xliff>