by phifa
composer create-project phifa/typo3stack=dev-master --prefer-dist .
- During the installation several external extensions are installed. Additionally two local extensions are installed
template
andtemplate_site1
. - The
template
extension is the Base and should not be changed at all. - Every root site in the pagetree can get its own child template
template_site1
,template_site2
, ... - First perform installation below. Customization will be done afterwards during integration below.
- For multi-domain setup, copy the child extension and repeat integration for each domain.
- Overwriting: All overwriting is done in the child extension: You can hide the standard Backend Layouts, add your own or overwrite them, same is true for FLUID files, etc. In
page.typoscript
you can overwrite thecss
and thejs
files with your own files, etc. When overwriting, make sure to stick to naming conventions, as only the same name will overwrite.
- Create your project folder and cd into it. Then:
composer create-project phifa/typo3stack=dev-master --prefer-dist .
- Copy configuration templates from
/presets/
to their place, customize and rename if neccessary. - Run
ddev start
or modify the ddev configuration first (e.g. change the name) - Modify
.env-example
in project root accordingly and rename to.env
. File is in shipped.gitignore
and should be created for each context. - Run
ddev ssh
, then./post-create-project-cmd.sh
. exit
ssh session.- Log in to the Backend and add the admin user to the Admin Group (Page UIDs should become visible in the pagetree after page refresh).
- Also double check under the module
Access
, that all pages point to the group:[ACCESS] Default
, if not already the case. - Now template_site1 template is up and running. For customization see below Integration
If the the name of the DDEV container was not changed, these are the urls:
Frontend:
http://template.ddev.local
https://template.ddev.local
http://127.0.0.1:32775
MailHog:
http://template.ddev.local:8025
phpMyAdmin:
http://template.ddev.local:8036
- Run
./renameextension.sh
and double check in changelog which files got changed. - Now the child template needs to be added again in two places in the backend: Add the TypoScript Template and the TSconfig to the Root Page. You might have to set the Backend Layout (and Sublevels) to
Test
again on the Root Page. - Modify constants of the child template accordingly.
config.name
, etc. - Clear System Caches and open your dev site, e.g.
http://mydomain.localhost
. Voila! - Configure sites first, with sites module.
- Make sure Git is set up correctly for your project and origin is set to the Bitbucket Repository.
- There should be a Master Branch that will deploy to the client's live site and a Staging Branch that will deploy to the client's stage subdomain
- You only need to customize the configuration in
.surf/
. The files are called inbitbucket-pipelines.yml