novactive/ezrssfeedbundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

novactive/ezrssfeedbundle

最新稳定版本:v3.2.1

Composer 安装命令:

composer require novactive/ezrssfeedbundle

包简介

A bundle used to generate RSS feeds based on ez contents

README 文档

README

This repository is what we call a "subtree split": a read-only copy of one directory of the main repository. It is used by Composer to allow developers to depend on specific bundles.

If you want to report or contribute, you should instead open your issue on the main repository: https://github.com/Novactive/Nova-eZPlatform-Bundles

Documentation is available in this repository via .md files but also packaged here: https://novactive.github.io/Nova-eZPlatform-Bundles/master/RssFeedBundle/README.md.html

Downloads Latest version License

Installation steps

Use Composer

Add the lib to your composer.json, run composer require novactive/ezrssfeedbundle to refresh dependencies.

Then inject the bundle in the bundles.php of your application.

   Novactive\EzRssFeedBundle\EzRssFeedBundle::class => [ 'all'=> true ],

Add routes

Make sure you add this route to your routing:

# config/routes.yaml

EzRssFeedBundle:
    resource: '@EzRssFeedBundle/Resources/config/routing.yml'

Import database tables

Rss Bundle uses custom database tables to store data. Use the following command to add the tables to your eZ Publish database:

$ php bin/console doctrine:schema:update 

Clear the caches

Clear the eZ Publish caches with the following command:

$ php app/console cache:clear

Install and dump assets

Run the following to correctly install and dump assets for admin UI. Make sure to use the correct Symfony environment with --env parameter:

$ php app/console assets:install --symlink --relative

Templating

A default view "rss_line" was created with an associated default template. The override rule supports all types of content items.

If you want to implement a particular view for a content type just do it like this:

system:
    default:
        content_view:
            rss_line:
                article:
                    template: "AcmeBlogBundle:eZViews:line/article.html.twig"
                    match:
                        Identifier\ContentType: [article]

To render meta link tag into your page head :

{{ render(controller('Novactive\\\EzRssFeedBundle\\Controller\\RssFeedViewController::rssHeadLinkTagsAction')) }}

Custom SiteListService

As default Novactive\EzRssFeedBundle\Services\SiteListService is implemented to fetch for Site Accesses list To do your own implementation you have to implement the given Interface : Novactive\EzRssFeedBundle\Services\SiteListServiceInterface then config your service as following :

Services:
  Novactive\EzRssFeedBundle\Services\SiteListServiceInterface: '@your_own.service_alias'

Site label Translation

You can add site accesses translations with novarss_sites translation domain. Inside your locale file (example novarss_sites.fr.yaml) put your translation as following :

site_access_identifier: My site

Note : This translation is enabled using the default SiteListService

HTTP caching

The NOVAEZRSSFEED_CACHE_TTL ENV var control the HTTP cache behavior:

  • null => public + expire at 0h00
  • 0 => private
  • <int> => public + s-maxage of <int>

统计信息

  • 总下载量: 18.75k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 15
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-06-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固