Tutorial: CMS
Edit on GitHubChallenge description
Create a static Contact Us page and integrate it into Yves. Then, create your own template and use it.
Create a static page
- Go to Zed UI and open the CMS Pages
https://zed.mysprykershop.com/cms-gui/list-page
backend. - Add a CMS page that uses the URL
/de/contact
. - Add the text you want to show on the static page.
- Activate the page. You can see the page here.
Use your own template
- Under
src/Pyz/Yves/Cms/Theme/default/template
, create a template and call itcontact
. - Add a placeholder and call it
MyPlaceholder
. You can open some other templates to see how it’s done. - Go back to the CMS Pages(
https://zed.mysprykershop.com/cms-gui/list-page
) backend and edit your page - Change the template to use
contact
. - Add new text to the placeholder
MyPlaceholder
. - Go back to the page and have a look at the changes.
Thank you!
For submitting the form