meteko/autosite

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.

Installs: 315

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 1

Open Issues: 5

Type:typo3-cms-extension

1.0.3 2018-12-12 13:58 UTC

This package is auto-updated.

Last update: 2024-04-29 04:07:44 UTC


README

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!