Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add customization guide for next.js app router #7316

Merged
merged 13 commits into from
Nov 15, 2024
Merged
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
22 changes: 22 additions & 0 deletions docs/content/guides/4.customization/1.index.md
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 docs/content/guides/4.customization/1.pages-router/1.index.md
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
:::
::
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ If you want to get access to it, contact our [sales team](https://docs.alokai.co
Learn how to create a custom Alokai page.

#cta
:::docs-button{to="/guides/customization-next-js/brands-page"}
:::docs-button{to="/guides/customization/pages-router/brands-page"}
Create a new page
:::
::
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ If you want to get access to it, contact our [sales team](https://docs.alokai.co
Learn how to add custom fields to the Unified Data Model

#cta
:::docs-button{to="/guides/customization-next-js/add-custom-field"}
:::docs-button{to="/guides/customization/pages-router/add-custom-field"}
Customize UDL
:::
::
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ If you want to get access to it, contact our [sales team](https://docs.alokai.co
Learn how to override normalizers.

#cta
:::docs-button{to="/guides/customization-next-js/changing-product-slug"}
:::docs-button{to="/guides/customization/pages-router/changing-product-slug"}
Next
:::
::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Read more about normalizers here: https://docs.alokai.com/storefront/unified-dat
Learn how to call a 3rd party back-end service and replace OOTB API method.

#cta
:::docs-button{to="/guides/customization-next-js/method-overriding"}
:::docs-button{to="/guides/customization/pages-router/method-overriding"}
Next
:::
::
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ If you want to get access to it, contact our [sales team](https://docs.alokai.co
Learn how to implement a custom feature by creating an extension.

#cta
:::docs-button{to="/guides/customization-next-js/adding-extension"}
:::docs-button{to="/guides/customization/pages-router/adding-extension"}
Next
:::
::
5 changes: 5 additions & 0 deletions docs/content/guides/4.customization/1.pages-router/_dir.yml
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

Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This guide assumes that:
Learn how to customize Alokai User Interface.

#cta
:::docs-button{to="/guides/customization-next-js/ui-customizations"}
:::docs-button{to="/guides/customization/app-router/ui-customizations"}
Start Customizing
:::
::
Loading
Loading