terminal42/contao-rootcontent 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

terminal42/contao-rootcontent

最新稳定版本:2.4.2

Composer 安装命令:

composer require terminal42/contao-rootcontent

包简介

Allows creating root-page aware content in Contao

README 文档

README

The extension allows creating root-page aware content in Contao.

Installation

Choose the installation method that matches your workflow!

Installation via Contao Manager

Search for terminal42/contao-rootcontent in the Contao Manager and add it to your installation. Apply changes to update the packages.

Manual installation

Add a composer dependency for this bundle. Therefore, change in the project root and run the following:

composer require terminal42/contao-rootcontent

Depending on your environment, the command can differ, i.e. starting with php composer.phar … if you do not have composer installed globally.

Then, update the database via the contao:migrate command or the Contao install tool.

Usage

There are multiple features to create root-page aware content.

Create articles in the root page

The extension allows to create articles in the root page. Here's how it works:

  1. Edit your theme and add custom content sections. Each theme can have multiple sections with root content.
  2. Add an article to a root page. Contrary to regular articles, you cannot enter a name but select one of the sections from your theme.
  3. Create a root-content module in your theme and select the section you want to output.
  4. Place the new module anywhere in your page layout.

Limit front end modules per root page

For each front end module, there is a new setting to limit it for one or multiple root pages. This way you can create language-aware modules. Simply place all of them in your page layout and only the respective ones will be rendered one at a time.

<body> css class per root page

Add css classes to the root page and they will be inherited through all pages.

统计信息

  • 总下载量: 5.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 5
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-13