Strapi How to configure a blog - kwantu/platformconfiguration GitHub Wiki
Return to Guides
Circular lists
To create a blog you will need to start by creating the circular components. You will need one Circularlist component. This is the component that is the container on your page that will display several objects. These objects will be the Circular components. These come in several types: pdf, word, image, txt and blog. The first 4 types require you to upload a document of that type. The CircularList knows what Circular components to display based on a filterkey. It is required that the filterkeys match.
Component Name | Description | Linked Components |
---|---|---|
CircularLists | The component that displays several items. | Page |
Circular | This is the main content component for your list. Here you will either upload a file to open when this item is selected from the list or it will take the user to a webpage that will display the content of this component. |
Field | Explanation |
---|---|
Page | If you are creating a blog then this field will link your items to a certain page. You will use this to link your blog template page. |
ItemsOnPage | This dictates how many items the list will display on the page at once. |
FilterKey | This is the key that links the CircularList to the Circulars |
Tags | These are tags to help users find similar files |
Type | This defines the type of item this circular is. Either an uploaded file or a blog. |
Document | This is where you upload the file you need depending on the type you picked |
Category | This is similar to tags. The categories will display in a selection box to help users narrow down their search |
Text | This component is needed for creating a blog. Each textbox will correspond to a blogText component in your blog template |
Image | This component is needed for creating a blog. Each textbox will correspond to a blogImage component in your blog template |
video | This component is needed for creating a blog. Each textbox will correspond to a blogVideo component in your blog template |
videoType | This defines what platform the video is from. Either YouTube or Wistia. |
Blog Objects
If you aren’t using the blog type then the above components are all you need to create. However, if you are then you need to create a page to be a template for your blog. This page will consist of the blog components that are blogText, blogImage and blogVideo. These objects simply point to which field in the Circular to use. A blogText component with the field text = text1 will point at text1 in the Circular component.
So simply create the blog components you need for your blog. For example, 2 blogText and 1 blogImage. Then create a new page. Add the blog components you created in the layout you want. Then make sure you link your CircularList to this page and you are done!
Component Name | Description |
---|---|
Blogtexts | This component is used to link to the text fields inside a circular component |
BlogImage | This component is used to link to the images inside a circular component |
blogVideo | This component is used to link to the video fields inside a circular component |