pixeldev / sulu-newsbundle
管理 Sulu 的新闻
2.4.13
2022-12-10 11:12 UTC
Requires
- php: ^7.4 || ^8.0
- pixeldev/sulu-block-bundle: ^2.4
- sulu/sulu: ^2.4
- symfony/config: ^4.4 || ^5.0
- symfony/dependency-injection: ^4.4 || ^5.0
- symfony/framework-bundle: ^4.4 || ^5.0
- symfony/http-foundation: ^4.4 || ^5.0
- symfony/http-kernel: ^4.4 || ^5.0
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.