-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add customization guide for next.js app router (#7316)
* docs: prepare structure for customization w/ app router * docs: add logo and pre-header customizations to app router guide * docs: add facet search on plp to the guide * docs: fix next page links in pages router guide * docs: add guide for brands page for app router * docs: add custom field guide for app router * docs: overriding normalizers in app router * docs: overriding methods in app router * docs: add social images feature to app router guide * Update docs/content/guides/4.customization/1.index.md Co-authored-by: Matt Maribojoc <[email protected]> * Update docs/content/guides/4.customization/1.pages-router/1.index.md Co-authored-by: Matt Maribojoc <[email protected]> * Update docs/content/guides/4.customization/2.app-router/2.ui-customizations.md Co-authored-by: Matt Maribojoc <[email protected]> * Update docs/content/guides/4.customization/2.app-router/2.ui-customizations.md Co-authored-by: Matt Maribojoc <[email protected]> --------- Co-authored-by: Matt Maribojoc <[email protected]>
- Loading branch information
1 parent
42f119b
commit 011a009
Showing
38 changed files
with
1,035 additions
and
6 deletions.
There are no files selected for viewing
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,22 @@ | ||
--- | ||
title: Alokai Customization Guide | ||
layout: default | ||
--- | ||
|
||
# Alokai Customization Guide | ||
|
||
On this page, you'll find a set of guides that will help you understand some advanced concepts of Alokai and how to customize the application to your requirements. | ||
|
||
::card{title="Alokai with Next.js pages router" icon="tabler:file" to="/guides/customization/pages-router" } | ||
|
||
#description | ||
Learn how to customize Alokai application with Next.js pages router. | ||
:: | ||
|
||
<br /> | ||
|
||
::card{title="Alokai with Next.js app router" icon="tabler:cube" to="/guides/customization/app-router" } | ||
|
||
#description | ||
Learn how to customize Alokai application with Next.js app router | ||
:: |
51 changes: 51 additions & 0 deletions
51
docs/content/guides/4.customization/1.pages-router/1.index.md
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,51 @@ | ||
--- | ||
title: Alokai Customization Guide | ||
layout: default | ||
--- | ||
|
||
# Alokai Customization Guide | ||
|
||
Alokai is not a cookie-cutter solution, it is meant to flexible enough to handle even the complex use cases. This guide will take you through the most common customization scenarios. We aim to cover end-to-end implementation of realistic business requirements. | ||
|
||
Some of the customizations you'll do throughout this guide are: | ||
|
||
::list{type="success"} | ||
- Customizing the logo image | ||
- Adjusting the theme colors | ||
- Inserting a pre-header | ||
- Implementing i18n (internationalization) | ||
- Modifying the look and feel of various components | ||
- Implementing a filter search feature | ||
- Creating a new page with a list of brands | ||
- Adding an "available for pickup" feature - add custom fields to our unified data model | ||
- Customizing the product slug to change the PDP URL | ||
- Fetching product reviews from an external service | ||
- Building a completely new feature from scratch. You will mock a "social product images" feature | ||
:: | ||
|
||
::info | ||
Please bear in mind that this guide is not exhaustive - Alokai offers some more features that you can find in our | ||
documentation: <https://docs.alokai.com/>. | ||
:: | ||
|
||
|
||
## Prerequisites | ||
|
||
This guide assumes that: | ||
|
||
- you've gone through the [Alokai Next.js guide](/guides/alokai-essentials/alokai-next-js). | ||
- you have access to [Alokai Enterprise](https://docs.alokai.com/enterprise) | ||
- you have an Alokai starter project provided by the Alokai team | ||
- you have access to SAP Commerce Cloud OCC API instance (you can use our demo instance) | ||
|
||
|
||
::card{title="Next: UI Customization" icon="tabler:number-1-small" } | ||
|
||
#description | ||
Learn how to customize Alokai User Interface. | ||
|
||
#cta | ||
:::docs-button{to="/guides/customization/pages-router/ui-customizations"} | ||
Start Customizing | ||
::: | ||
:: |
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
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
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
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
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
File renamed without changes.
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,5 @@ | ||
title: Next.js pages router | ||
sidebarRoot: true | ||
navigation: | ||
icon: tabler:file | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.