Strapi How to create a Strapi portal - kwantu/platformconfiguration GitHub Wiki

Structure

The structure of configuring a website is to follow the sequence of steps:

  1. component: build the components that will be on the page
  2. page: define the page and link to components that will be on the page
  3. menuitems: link the page to the menuitem that represents a link in the navigation
  4. menubars: define the menubar and add the menuItems
  5. header/footer: define the header and footer sections that will be used for the portal
  6. community: define the community and link the header, footer and menubar to it.

Components

To set up a new website you will first need to start with community creation. The Community itself is a Strapi component and it will require a couple other components to be created as well. To create the base of a functioning website you will need to create the following components.

Component Name Description Linked Components
Communities This is the first step required to build the website. Header, Footer, Page
Headers This is the very top of the website that will contain the navigation bar and a logo. You can also choose to include a login. This appears on every page Menubar
Footer This is the very bottom of the website that will contain information about contacts, copyright, external links to social media and other sites. This appears on every page
Pages This is the page component. Your website will be made up of multiple pages. These contain any number of the other components you would like. You can attach a layout to define where the components are placed on your page. Layouts
MenuItems For the menubar to work you need to create Menuitems first. This allows you to link a page to the Menubar. If you would like a page to be a child of another then you can select a parent for that page. This will create subheadings on the Menubar. Pages
Menubar This defines the navigation bar used in your header. Every page you want linked to your website must be selected in Menuitems. Menuitems, Menubar
Layouts This defines how many rows will make up your page and how many components can fit on each row. Add a new entry and select a row. Then choose the size of the columns. The width of each component is calculated as a ratio. So if you have: Column 1 = 6, Column 2 = 6 Then both columns would be the same size and take up half the page each.

Most fields in the above field are self-explanatory. Below are some fields that might not be.

Field Explanation
CommunityId This is the Id that links this page with a community on betterdata
Basepath This is the basepath of the url. https://staging.kwantu.net/portal/
Parent This defines whether the page for this menuitem is a child of another. This will put this page into a drop down under the parent item on the menubar.
⚠️ **GitHub.com Fallback** ⚠️