strapi / foodadvisor

🥘 THE Strapi demo application
MIT License
1.09k stars 446 forks source link

Create universals pages #64

Closed lauriejim closed 3 years ago

lauriejim commented 3 years ago

This PR adds a Universal Collection Type to be able to create pages on demand. The data structure is really close to what we used for the Strapi website.

Screen Shot 2020-11-19 at 15 07 18

To demonstrate the reusability of components, we are using the SEO component that is also used in the Restaurant Collection Type. This new Collection Type also demonstrates (not on the maximum) the power of Dynamic Zones. There is also the usage of the UID field linked to the Title text field.

One entry is already created in the Universal Collection Type. This entry is for the About FoodAdvisor page. The content has been updated from the previous page, thanks to Victor C. for the content update. Same for the SEO content.

To demonstrate the fact that we can create pages on demand with Universals Collection Type, The frontend will have to be able to template Universal pages. The structure, for now, is quite simple.

Screen Shot 2020-11-19 at 15 08 41