定制 odiseoteam/blog-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

odiseoteam/blog-bundle

最新稳定版本:v1.2.4

Composer 安装命令:

composer require odiseoteam/blog-bundle

包简介

Bundle for Symfony to generate blog content.

README 文档

README

Odiseo
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

  1. Run composer require odiseoteam/blog-bundle.

  2. 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);
}
  1. Import the configurations on your config.yml:
    - { resource: "@OdiseoBlogBundle/Resources/config/config.yml" }
  1. Import the routes:
odiseo_blog:
    prefix: /blog
    resource: "@OdiseoBlogBundle/Resources/config/routing/main.yml"
  1. 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

GitHub 信息

  • Stars: 19
  • Watchers: 4
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-28