pixeldev/sulu-newsbundle

管理 Sulu 的新闻

2.4.13 2022-12-10 11:12 UTC

This package is not auto-updated.

Last update: 2024-09-14 20:25:27 UTC


README

需求

  • PHP >= 7.4
  • Sulu >= 2.4.*
  • Symfony >= 5.4

功能

  • 新闻列表视图(智能内容)
  • 无需 Elasticsearch
  • 路由
  • 预览
  • SULU 媒体包含
  • 内容块(标题、编辑器、图片、引语)
  • 活动日志
  • 回收站
  • 自动化
  • SEO

安装

安装包

执行以下 composer 命令,将包添加到项目的依赖中

composer require pixeldev/sulu-newsbundle --with-all-dependencies

启用包

通过将包添加到项目 config/bundles.php 文件中注册的包列表来启用包

return [
    /* ... */
    Pixel\NewsBundle\NewsBundle::class => ['all' => true],
];

更新模式

bin/console do:sch:up --force

包配置

routes_admin.yaml 中定义 Admin Api 路由

news.news_api:
  type: rest
  prefix: /admin/api
  resource: pixel_news.news_route_controller
  name_prefix: news.