-
Notifications
You must be signed in to change notification settings - Fork 6
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
feat: Add CMS setting up guide #147
Open
soniaklimas
wants to merge
2
commits into
develop
Choose a base branch
from
MS-905-add-setting-up-cms-guide
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,139 @@ | ||
import { Steps } from "nextra/components"; | ||
|
||
# Saleor CMS | ||
|
||
This guide will help you set up Saleor CMS, which manages the **homepage**, **footer**, and **navigation** of your storefront. | ||
|
||
## Configure homepage | ||
|
||
Saleor CMS relies on attributes to organize content, and specific attributes are required for setting up homepage. Refer to screenshots below to identify necessary attributes. | ||
|
||
<Steps> | ||
### Create required attributes | ||
|
||
Navigate to Saleor dashboard > **Configuration** > **Attributes and Product Types** and select **Attributes**. | ||
Create following attributes: | ||
|
||
**Carousel products** - used to display up to 8 products in a carousel on homepage: | ||
![Carousel products attribute](../../images/cms/homepage/carousel-products.png) | ||
|
||
**Homepage banner button text** - used to display button text on banner section: | ||
![Banner button text attribute](../../images/cms/homepage/banner-button-text.png) | ||
|
||
**Homepage banner header** - used to display header on banner section: | ||
![Banner header attribute](../../images/cms/homepage/banner-header.png) | ||
|
||
**Homepage banner image** - used to display background image of banner section: | ||
![Banner image attribute](../../images/cms/homepage/banner-image.png) | ||
|
||
**Homepage button text** - used to display button text on page bottom: | ||
![Button text attribute](../../images/cms/homepage/button-text.png) | ||
|
||
**Homepage grid item header** - used to display header on featured carousel's element: | ||
![Grid item header attribute](../../images/cms/homepage/grid-item-header.png) | ||
|
||
**Homepage grid item header font color** - used to set font color of header on featured carousel's element: | ||
![Grid item header font color attribute](../../images/cms/homepage/grid-item-header-font-color.png) | ||
|
||
**Homepage grid item image** - used to display background image of featured carousel's element: | ||
![Grid item image attribute](../../images/cms/homepage/grid-item-image.png) | ||
|
||
**Homepage grid item subheader** - used to display subheader on featured carousel's element: | ||
![Grid item subheader attribute](../../images/cms/homepage/grid-item-subheader.png) | ||
|
||
**Homepage grid item subheader font color** - used to set font color of subheader on featured carousel's element: | ||
![Grid item subheader font color attribute](../../images/cms/homepage/grid-item-subheader-font-color.png) | ||
|
||
### Create Homepage page type | ||
|
||
To set up homepage, you need to create **Page Type** and assign appropriate attributes. Follow these steps: | ||
|
||
<Steps> | ||
|
||
#### Navigate to Page Types | ||
|
||
Go to Saleor dashboard > **Configuration** > **Content Management** and select **Page Types**. | ||
|
||
#### Create new Page Type | ||
|
||
Click on **Create page type**. | ||
Enter name **Homepage** for Content Type Name and click **Save**. | ||
|
||
#### Assign attributes | ||
|
||
Assign all required attributes to **Homepage Page Type**: | ||
![Homepage page type attribute](../../images/cms/homepage/homepage-page-type.png) | ||
|
||
</Steps> | ||
|
||
### Create actual homepage | ||
|
||
Once **Homepage Page Type** is set up, you can create the actual homepage content by following these steps: | ||
|
||
<Steps> | ||
#### Navigate to Content management | ||
|
||
Go to Saleor dashboard > **Content** and click **Create content**. | ||
|
||
#### Select Page Type | ||
|
||
In dropdown, select **Homepage**. | ||
This ensures that attributes assigned to **Homepage Page Type** are available for editing. | ||
|
||
#### Fill in attributes | ||
|
||
</Steps> | ||
</Steps> | ||
|
||
## Configure navigation & footer | ||
|
||
<Steps> | ||
|
||
### Navigate to Navigation management | ||
|
||
Go to Saleor dashboard > **Configuration** > **Miscellaneous** and select **Navigation** | ||
|
||
### Create Menu for navigation and footer | ||
|
||
Click **Create menu** to open menu creation form. | ||
For main navigation, name menu **navbar**. | ||
This menu will manage links displayed in your website's header navigation. | ||
For footer, create another menu and name it **footer**. | ||
This menu will handle links displayed in footer section of your website. | ||
![Navigation menus](../../images/cms/navigation/navigation.png) | ||
|
||
### Create Menu items | ||
|
||
Select menu you want to edit and click **Create new item** to open menu item creation form. | ||
Menu items can link to various resources: | ||
|
||
- **Category**, | ||
- **Collection**, | ||
- **Static Page** - link to page created in **Content** section, | ||
- **URL** - URL to external website or link to internal page within your storefront. | ||
|
||
</Steps> | ||
|
||
## Configure Static Page | ||
|
||
Static page in Saleor is used for standalone content, such as "About Us" or "Contact" page. Unlike **Homepage** page type, **Static Page** does not require attributes. Follow these steps to create one: | ||
|
||
<Steps> | ||
### Navigate to Content Management | ||
Go to Saleor dashboard > **Configuration** > **Content Management** and select **Page Types**. | ||
#### Create new Page Type | ||
|
||
Click on **Create page type**. | ||
Enter name **Static page** for Content Type Name and click **Save**. | ||
|
||
### Enter page details | ||
|
||
- **Title** - provide title for page (e.g., "About Us"). | ||
- **Slug** - specify slug for page, this will determine its URL (e.g., /about-us). | ||
- **Content** - use rich text editor to add your content (e.g., text paragraphs, headings, bullet points or numbered lists, images, hyperlinks) | ||
|
||
### Create actual static page | ||
|
||
Creating actual static page follows the same steps as creating homepage. | ||
|
||
</Steps> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.