This tutorial/workshop started as a pure Craft CMS starter as provided in the craftcms/craft package with the following additions:
- Added modules/_faux to enable autocompletion for some most frequently used variables in twig
- Moves example module to modules/main
- Set system timezone to Europe/Berlin
- Added /web/cpresources, /node_modules, /config/license.key to .gitignore
- Added more config settings and use fluent syntax in config/general.php
We then built a extended version of Craft's official tutorial.
- Added setup/install for automated installation under ddev, imports a demo database with a user
admin/password
. - Added multi-lingual support
- Added sections Home/Page/Post/SiteInfo/Topic
- Added fields for sections incl. a simple matrix content builder.
- Added sample content (mostly AI generated/translated)
- Added twig frontend templates with a lot of comments that should be helpful for beginners.
- Added CP styles
- Added CP template ui elements
-
- Display existing drafts
-
- Display usage for assets
- Basic Tailwind CSS setup
- Clone repository
cd
into project directory- Run
bash setup/install <projectname>