novactive / ezrssfeedbundle
基于ez内容的生成RSS订阅的组件
Requires
- php: ^7.3 || ^8.0
- dev-master
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.2
- v2.0.1
- 2.0.0
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.0
- dev-master-ibx4
- dev-feat-rss-ibxa-4
- dev-master-ibx3
- dev-release-1.x
- dev-valid-enclosures
- dev-add-visibility-filter
- dev-fix-feed-url
- dev-feat-72287_issue_with_rss_module
- dev-feat-71682_rss_bundle_modification
- dev-#65292-GOUV_eZPF
This package is auto-updated.
Last update: 2024-09-09 14:11:05 UTC
README
这个仓库是我们所说的“子树拆分”:主仓库中一个目录的只读副本。它被Composer用于允许开发者依赖于特定的组件。
如果您想报告或贡献,请打开主仓库的问题:https://github.com/Novactive/Nova-eZPlatform-Bundles
文档可以通过此仓库中的.md
文件获取,也打包在这里:https://novactive.github.io/Nova-eZPlatform-Bundles/master/RssFeedBundle/README.md.html
安装步骤
使用Composer
将库添加到您的composer.json中,运行composer require novactive/ezrssfeedbundle
来更新依赖。
然后将组件注入到您应用程序的bundles.php
中。
Novactive\EzRssFeedBundle\EzRssFeedBundle::class => [ 'all'=> true ],
添加路由
确保您将此路由添加到您的路由中
# config/routes.yaml EzRssFeedBundle: resource: '@EzRssFeedBundle/Resources/config/routing.yml'
导入数据库表
Rss Bundle使用自定义数据库表来存储数据。使用以下命令将表添加到您的eZ Publish数据库
$ php bin/console doctrine:schema:update
清除缓存
使用以下命令清除eZ Publish缓存
$ php app/console cache:clear
安装和导出资源
运行以下命令以正确安装和导出管理UI的资源。请确保使用正确的Symfony环境,使用--env
参数
$ php app/console assets:install --symlink --relative
模板
已创建一个默认视图“rss_line”,并关联了一个默认模板。覆盖规则支持所有类型的内容项。
如果您想实现特定内容类型的特定视图,只需这样做
system: default: content_view: rss_line: article: template: "AcmeBlogBundle:eZViews:line/article.html.twig" match: Identifier\ContentType: [article]
将元链接标签渲染到页面头部
{{ render(controller('Novactive\\\EzRssFeedBundle\\Controller\\RssFeedViewController::rssHeadLinkTagsAction')) }}
自定义SiteListService
默认情况下,Novactive\EzRssFeedBundle\Services\SiteListService
被实现为获取站点访问列表。要实现自己的实现,您必须实现给定的接口:Novactive\EzRssFeedBundle\Services\SiteListServiceInterface
,然后按以下方式配置服务
Services: Novactive\EzRssFeedBundle\Services\SiteListServiceInterface: '@your_own.service_alias'
站点标签翻译
您可以使用novarss_sites
翻译域添加站点访问翻译。在您的区域文件(例如novarss_sites.fr.yaml)中,按以下方式放置您的翻译
site_access_identifier: My site
注意:此翻译是通过默认的SiteListService启用的