open-wide/ezpublish-service-bundle

为 Ez Publish 5 提供一个完整的系统,用于在 ezflow 块和全页中创建和显示服务

dev-master 2015-08-19 12:48 UTC

This package is not auto-updated.

Last update: 2024-09-14 17:16:26 UTC


README

https://github.com/Open-Wide/OwServiceBundle/raw/master/doc/images/Open-Wide_logo.png

演示

此扩展提供了一个完整的系统,用于在块或全视图中创建和显示服务。

许可证

此 eZ Publish 扩展提供为 原样,遵循 GPL v3 许可协议(见许可证)。

通过 composer 安装

  1. 在您的项目 composer.json 中添加 ServiceBundle
{
  "require": {
    "open-wide/ezpublish-service-bundle": "dev-master"
  }
}
  1. 在您的 EzPublishKernel.php 文件中启用 Bundle
<?php
// ezpublish/EzPublishKernel.php
use OpenWide\Publish\ServiceBundle;
...

public function registerBundles()
{
  $bundles = array(
    // ...
    new OpenWide\Publish\ServiceBundle\OpenWidePublishServiceBundle(),
  );
}
  1. 使用 Package 目录中的内容包或使用 [OWMigration](https://github.com/Open-Wide/OWMigration) 创建以下类
  • 在类组 Service
    • service_folder
    • service_link
  1. 将您的 event_folder LocationId 添加到 src/symfony/ezpublish/config/config.yml
# LocationId of Service folder
open_wide_publish_service:
    root:
        location_id: ....
     # Nb of element per page
    paginate:
        max_per_page: ...
  1. 在后台办公室创建以下结构的内 容

    • service_folder
      • service_link
      • service_link
  2. 手动运行遗留包安装脚本

$ php ezpublish/console ezpublish:legacybundles:install_extensions

默认情况下,它将创建一个绝对符号链接,但可以选择使用硬拷贝(–copy)或相对链接 (--relative)。