Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LPS-146737 Add 404 page to team extranet initializer
- Loading branch information
1 parent
177797e
commit 76e0dd4
Showing
2 changed files
with
233 additions
and
0 deletions.
There are no files selected for viewing
218 changes: 218 additions & 0 deletions
218
...izer-team-extranet/src/main/resources/site-initializer/layouts/9_404/page-definition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,218 @@ | ||
{ | ||
"pageElement": { | ||
"pageElements": [ | ||
{ | ||
"definition": { | ||
"fragmentStyle": { | ||
"borderWidth": "0", | ||
"marginBottom": "4", | ||
"marginTop": "10", | ||
"paddingBottom": "5", | ||
"paddingTop": "5", | ||
"textAlign": "center" | ||
}, | ||
"fragmentViewports": [ | ||
{ | ||
"fragmentViewportStyle": { | ||
"marginBottom": "0", | ||
"paddingTop": "5" | ||
}, | ||
"id": "landscapeMobile" | ||
}, | ||
{ | ||
"fragmentViewportStyle": { | ||
"marginBottom": "0", | ||
"paddingBottom": "5", | ||
"paddingTop": "5" | ||
}, | ||
"id": "portraitMobile" | ||
}, | ||
{ | ||
"fragmentViewportStyle": { | ||
"marginBottom": "0", | ||
"marginTop": "0", | ||
"paddingTop": "5" | ||
}, | ||
"id": "tablet" | ||
} | ||
], | ||
"layout": { | ||
"align": "Center", | ||
"borderWidth": 0, | ||
"contentDisplay": "FlexColumn", | ||
"marginBottom": 2, | ||
"marginLeft": 0, | ||
"marginRight": 0, | ||
"marginTop": 0, | ||
"paddingBottom": 4, | ||
"paddingLeft": 0, | ||
"paddingRight": 0, | ||
"paddingTop": 4, | ||
"widthType": "Fluid" | ||
} | ||
}, | ||
"pageElements": [ | ||
{ | ||
"definition": { | ||
"fragment": { | ||
"key": "heading" | ||
}, | ||
"fragmentConfig": { | ||
"displayLevel": "1", | ||
"headingLevel": "h1" | ||
}, | ||
"fragmentFields": [ | ||
{ | ||
"id": "element-text", | ||
"value": { | ||
"fragmentLink": { | ||
"value_i18n": { | ||
} | ||
}, | ||
"text": { | ||
"value_i18n": { | ||
"en_US": "404" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"fragmentStyle": { | ||
"fontFamily": "fontFamilySansSerif", | ||
"marginBottom": "2", | ||
"textAlign": "" | ||
} | ||
}, | ||
"type": "Fragment" | ||
}, | ||
{ | ||
"definition": { | ||
"fragment": { | ||
"key": "heading" | ||
}, | ||
"fragmentConfig": { | ||
"displayLevel": "0", | ||
"headingLevel": "h2" | ||
}, | ||
"fragmentFields": [ | ||
{ | ||
"id": "element-text", | ||
"value": { | ||
"fragmentLink": { | ||
"value_i18n": { | ||
} | ||
}, | ||
"text": { | ||
"value_i18n": { | ||
"en_US": "Page not Found" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"fragmentStyle": { | ||
"fontFamily": "fontFamilySansSerif", | ||
"marginBottom": "2", | ||
"textAlign": "" | ||
} | ||
}, | ||
"type": "Fragment" | ||
}, | ||
{ | ||
"definition": { | ||
"fragment": { | ||
"key": "text-block" | ||
}, | ||
"fragmentConfig": { | ||
}, | ||
"fragmentFields": [ | ||
{ | ||
"id": "element-text", | ||
"value": { | ||
"fragmentLink": { | ||
"value_i18n": { | ||
} | ||
}, | ||
"text": { | ||
"value_i18n": { | ||
"en_US": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis semper convallis euismod vestibulum in pharetra." | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"fragmentStyle": { | ||
"marginBottom": "4", | ||
"maxWidth": "100%", | ||
"paddingLeft": "2", | ||
"paddingRight": "2", | ||
"textAlign": "center", | ||
"width": "520px" | ||
} | ||
}, | ||
"type": "Fragment" | ||
}, | ||
{ | ||
"definition": { | ||
"fragment": { | ||
"key": "button" | ||
}, | ||
"fragmentConfig": { | ||
"buttonSize": "sm", | ||
"buttonVariant": "primary", | ||
"buttonWidth": "v-auto" | ||
}, | ||
"fragmentFields": [ | ||
{ | ||
"id": "link", | ||
"value": { | ||
"fragmentLink": { | ||
"value": { | ||
"href": { | ||
"mapping": { | ||
"itemReference": { | ||
"className": "com.liferay.portal.kernel.model.Layout", | ||
"fields": [ | ||
{ | ||
"fieldName": "friendlyURL", | ||
"fieldValue": "/home" | ||
}, | ||
{ | ||
"fieldName": "privatePage", | ||
"fieldValue": "false" | ||
}, | ||
{ | ||
"fieldName": "siteKey", | ||
"fieldValue": "t3" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"value_i18n": { | ||
} | ||
}, | ||
"text": { | ||
"value_i18n": { | ||
"en_US": "Go to home page" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"type": "Fragment" | ||
} | ||
], | ||
"type": "Section" | ||
} | ||
], | ||
"type": "Root" | ||
}, | ||
"settings": { | ||
"masterPage": { | ||
"key": "master" | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...ite-initializer-team-extranet/src/main/resources/site-initializer/layouts/9_404/page.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"hidden": true, | ||
"name_i18n": { | ||
"en_US": "404" | ||
}, | ||
"private": false, | ||
"system": false, | ||
"type": "Content", | ||
"typeSettings": [ | ||
{ | ||
"key": "collectionType", | ||
"value": "com.liferay.item.selector.criteria.InfoListItemSelectorReturnType" | ||
} | ||
] | ||
} |