agoat/contao-postsnpages

Contao 4 Posts'n'pages

安装: 125

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 2

分支: 0

开放问题: 4

类型:contao-bundle

1.7.1 2021-03-17 17:21 UTC

README

Version License Downloads

关于

Contao 管理内容的一种替代结构 - 类似于 WordPress 但方法更全面。它基于这样一个理念:一个网站基本上包含三种类型的内容

帖子内容

指向文章或主题的内容(这是博客的典型特征),可以称为单独的 URL,但同时也列在页面概述中(通常作为预告)。

页面内容

指向单个页面并且只在该页面上可用的内容(如团队页面、联系页面)。

静态内容

作为模块集成到页面布局中的内容,可以在多个或所有页面上看到(如页脚或版权信息)。

注意

如果安装到现有项目中,所有页面文章将消失(它们仍然存在于数据库中)。在未来的版本中,将实现将页面文章自动迁移到新页面容器中。

安装

Contao 管理员

搜索包并安装

agoat/contao-postsnpages

管理版

添加包

# Using the composer
composer require agoat/contao-postsnpages

注册和配置将由管理员插件自动完成。

标准版

添加包

# Using the composer
composer require agoat/contao-postsnpages

在 AppKernel 中注册捆绑包

# app/AppKernel.php
class AppKernel
{
    // ...
    public function registerBundles()
    {
        $bundles = [
            // ...
            // after Contao\CoreBundle\ContaoCoreBundle
            new Agoat\PostsnPagesBundle\AgoatPostsnPagesBundle(),
        ];
    }
}