Download the PHP package meteko/autosite without Composer
On this page you can find all versions of the php package meteko/autosite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download meteko/autosite
More information about meteko/autosite
Files in meteko/autosite
Package autosite
Short Description Automatically load TypoScript and PageTS to a pagetree, based on your 'sites' configuration. Give your site the same identifier as a extension and configuration is automatically loaded.
License GPL-2.0+
Informations about the package autosite
Introduction
A follow up extension using the newly introduced `sites` concept. The goal is to build a connection between the given identifier a site has and a extension with the same name. In this way, no need for inclusion of typoscript as it's done automatically
Installation
`composer require meteko/autosite`
Preparations
Frontend rendering
- Create a extension with the extension key that you expect to give your site as identifier
- Create typoscript setup in `<extension-key>/Configuration/TypoScript/setup.typoscript`
- Create typoscript constants in `<extension-key>/Configuration/TypoScript/constants.typoscript`
- Create a new `site` with the same `identifier` as your extension key
Backend Page TSconfig
- If you haven't created a extension, follow the steps in the Frontend rendering section above
- Create a tsconfig file name `<extension-key>/Configuration/PageTS/main.tsconfig`
How it works
Your typoscript configuration is automatically loaded in both backend and frontend, when you browse a part of the pagetree that your `sites` configuration is attached to.
You can browse the object browser and see the configuration - all should be there :-)
Big thanks to
Big thanks to @bmack and the the `bolt` extension that has served as 100% inspiration and reuse of code
https://github.com/CMSExperts/bolt
And to the whole core team om TYPO3 for making 9.5 so great!