meteko/autosite
Composer 安装命令:
composer require 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.
README 文档
README
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!
统计信息
- 总下载量: 320
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2018-11-08