odiseoteam/blog-bundle
最新稳定版本:v1.2.4
Composer 安装命令:
composer require odiseoteam/blog-bundle
包简介
Bundle for Symfony to generate blog content.
README 文档
README
Odiseo Blog Bundle
Description
This Bundle add blog capabilities to your Symfony project. It is admin agnostic, so you need to integrate on your preferred admin system.
Features
With this bundle you will get some models to manage a blog on your proyect. Also it comes with a Sylius Resource and Sylius Grid integrations.
Also this bundle uses the FOSCKEditorBundle. Follow the official instructions to install it properly.
Installation
-
Run
composer require odiseoteam/blog-bundle. -
Add the plugin to the AppKernel but add it before SyliusResourceBundle. To do that you need change the registerBundles. This bundle uses the FOSCKEditorBundle so you need add it to the kernel too.
public function registerBundles(): array { $preResourceBundles = [ new \Odiseo\BlogBundle\OdiseoBlogBundle(), ]; $bundles = [ new \Sylius\Bundle\ResourceBundle\SyliusResourceBundle(), new \FOS\CKEditorBundle\FOSCKEditorBundle(), ... ]; return array_merge($preResourceBundles, parent::registerBundles(), $bundles); }
- Import the configurations on your config.yml:
- { resource: "@OdiseoBlogBundle/Resources/config/config.yml" }
- Import the routes:
odiseo_blog: prefix: /blog resource: "@OdiseoBlogBundle/Resources/config/routing/main.yml"
- Finish the installation updatating the database schema and installing assets:
php bin/console doctrine:schema:update --force
Usage
Available routes
Article comment create
You can use this partial route to embed the comment form:
{{ render(url('odiseo_blog_partial_comment_create', {'slug': article.slug, 'template': 'Main/Blog/_comment_create.html.twig'})) }}
Test the bundle
You can follow the instructions to test this bundle in the proper documentation page: Test the bundle.
Credits
This plugin is maintained by Odiseo, a team of senior developers. Contact us: team@odiseo.com.ar.
统计信息
- 总下载量: 108.26k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 19
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-28