positibe / cms-bundle
Symfony Positibe Cms Bundle
Requires
- egeloen/ckeditor-bundle: ^4.0
- helios-ag/fm-elfinder-bundle: ~6
- lunetics/locale-bundle: ^2.5
- positibe/cmf-routing-extra-bundle: ^1.0
- positibe/core-bundle: ^1.0
- positibe/media-bundle: ^1.0
- positibe/menu-bundle: ^1.0
- sonata-project/block-bundle: ^3.1.1
- symfony-cmf/seo-bundle: ^2.0
- symfony/assetic-bundle: ^2.8
- symfony/framework-bundle: ~2.8|~3.0
- symfony/options-resolver: ^3.0
This package is not auto-updated.
Last update: 2024-09-15 23:54:22 UTC
README
此包提供 AbstractPage、Page 和 Category 实体,并集成一些其他 Positibe 包以创建页面 CMS 表示。
安装
之前
要安装此包,只需添加依赖包
php composer.phar require positibe/cms-bundle
此包为其他 Positibe 包设置所需的配置,例如
- PositibeMenuBundle
- PositibeMediaBundle
- PositibeCmfRoutingExtraBundle
- PositibeCmsBundle
但最好查看那些 README.md 文件
接下来,请确保在您的应用程序内核中启用这些包
<?php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
// Sylius ResourceBundle
new Stof\DoctrineExtensionsBundle\StofDoctrineExtensionsBundle(),
new FOS\RestBundle\FOSRestBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new Sylius\Bundle\ResourceBundle\SyliusResourceBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle(),
new winzou\Bundle\StateMachineBundle\winzouStateMachineBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new Liip\ImagineBundle\LiipImagineBundle(),
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
new FM\ElfinderBundle\FMElfinderBundle(),
new Sonata\CoreBundle\SonataCoreBundle(),
new Sonata\BlockBundle\SonataBlockBundle(),
new Sonata\SeoBundle\SonataSeoBundle(),
new Lunetics\LocaleBundle\LuneticsLocaleBundle(),
new Symfony\Cmf\Bundle\CoreBundle\CmfCoreBundle(),
new Symfony\Cmf\Bundle\RoutingBundle\CmfRoutingBundle(),
new Symfony\Cmf\Bundle\RoutingAutoBundle\CmfRoutingAutoBundle(),
new Symfony\Cmf\Bundle\SeoBundle\CmfSeoBundle(),
new Positibe\Bundle\CmfRoutingExtraBundle\PositibeCmfRoutingExtraBundle(),
new Positibe\Bundle\CoreBundle\PositibeCoreBundle(),
new Positibe\Bundle\MediaBundle\PositibeMediaBundle(),
new Positibe\Bundle\MenuBundle\PositibeMenuBundle(),
new Positibe\Bundle\CmsBundle\PositibeCmsBundle(),
// ...
);
}
配置
将所有必要的配置导入您的 app/config/config.yml 基本配置。 # app/config/config.yml 导入: - { resource: '@PositibeCoreBundle/Resources/config/config.yml'} - { resource: '@PositibeCmsBundle/Resources/config/config.yml' } - { resource: '@PositibeMediaBundle/Resources/config/config.yml'} - { resource: '@PositibeMenuBundle/Resources/config/config.yml'} - { resource: '@PositibeCmfRoutingExtraBundle/Resources/config/config.yml' }
#If you want some advanced configuration
positibe_cms:
public_routes: # e.g. [homepage, my-company] List of public symfony routes available.
content_class: # e.g. [ AppBundle\Entity\Post, AppBundle\Entity\Category ] List of content that extend of MenuNodeReferralInterface.
注意: 此包使用 GedmoDoctrineExtension 的 timestampable、sluggable、softdeleteable、translatable 和 sortable 扩展。请确保您已启用这些扩展的监听器。您还可以使用 StofDoctrineExtensionBundle。 注意: 如果您在 config.yml 中配置了参数 positibe.menu_node.class: Positibe\Bundle\MenuBundle\Doctrine\Orm\MenuNode
,请将其删除。