lbr-media / typo3-bootstrap-base
使用 bootstrap 5 模板引擎的 TYPO3 CMS 基础发行版。
1.0.0
2022-02-27 05:40 UTC
Requires
- helhum/typo3-console: ^7
- typo3/cms-adminpanel: ^11.5
- typo3/cms-backend: ^11.5
- typo3/cms-belog: ^11.5
- typo3/cms-beuser: ^11.5
- typo3/cms-core: ^11.5
- typo3/cms-dashboard: ^11.5
- typo3/cms-extbase: ^11.5
- typo3/cms-extensionmanager: ^11.5
- typo3/cms-filelist: ^11.5
- typo3/cms-filemetadata: ^11.5
- typo3/cms-fluid: ^11.5
- typo3/cms-frontend: ^11.5
- typo3/cms-impexp: ^11.5
- typo3/cms-info: ^11.5
- typo3/cms-install: ^11.5
- typo3/cms-lowlevel: ^11.5
- typo3/cms-recordlist: ^11.5
- typo3/cms-reports: ^11.5
- typo3/cms-rte-ckeditor: ^11.5
- typo3/cms-seo: ^11.5
- typo3/cms-setup: ^11.5
- typo3/cms-sys-note: ^11.5
- typo3/cms-t3editor: ^11.5
- typo3/cms-tstemplate: ^11.5
- typo3/cms-viewpage: ^11.5
This package is auto-updated.
Last update: 2024-09-08 23:36:43 UTC
README
仅包含一个 composer.json 文件即可运行完整的网站。
这主要用于测试。
此包安装了 Typo3 v11,之后还安装了两个扩展
- https://github.com/lbr-media/typo3-extension-bootstrap 作为
bootstrap
,这是一个模板扩展,提供运行 Bootstrap 5 网站所需的所有功能。 - https://github.com/lbr-media/typo3-extension-bootstrap-example 作为
bootstrap_example
,这是一个发行版扩展。这里包含了所有数据和文件。
安装
1. 开始安装
下载所有基本 typo3 包。
composer install
2. 以常规方式安装 Typo3
- 创建文件
public/FIRST_INSTALL
。 - 调用网站: https://your-domain/
- 执行安装步骤。
当能够运行 Typo3 后台时停止。不要创建记录,如页面或模板,因为发行版扩展不会导入其记录。
4. 加载模板和发行版扩展
composer require lbr-media/typo3-extension-bootstrap composer require lbr-media/typo3-extension-bootstrap-example
5. 运行扩展
# Copy some assets to fileadmin. php vendor/bin/typo3 bootstrap:updatefileadmin # Activate the extensions which also imports the data from the distribution-extension: php vendor/bin/typo3 extension:setup
之后清除缓存(例如,使用 php vendor/bin/typo3 cache:flush
)并检查网站是否运行。
调整设置
baseURL
设置为 /
。如果您在子目录中运行网站,请在根页面的模板中的 Setup
字段中调整它
config.baseURL = /your-subfolder/
或者
config.baseURL = https://your-domain/your-subfolder/
调整常量
由于导入记录时记录的 UIDs 可能会更改,您必须设置一些 PID。
转到后端并打开根页面的模板。在 Constants
字段中设置此内容并调整 PID
plugin.tx_bootstrapexample {
pid {
menu {
legal = 2
projects = 10
portfolio = 7
brand = 13
contact = 5
}
}
}