Feed

Feed plugin for Flextype

Sergey Romanenko


Features

Feed plugin for Flextype supports Atom 1.0, RSS and JSON feed types and allows you to generate feeds for entries.

Installation

  1. Download & Install all required dependencies.
  2. Create new folder /project/plugins/feed
  3. Download Feed Plugin and unzip plugin content to the folder /project/plugins/feed

Settings

Key Value Description
enabled true true or false to disable the plugin
priority 100 Feed plugin priority
feed [] Feed specific data

Usage

In project/config/plugins/feed/settings.yaml you may create unlimited feed for you entries.

Lets create RSS, ATOM and JSON feed for blog collection:

feed:
  blog-rss:
    id: blog
    options:
      title: Blog
      description: Blog description
      collection: true
      Feedat: rss
      route: '/blog.rss'
  blog-atom:
    id: blog
    options:
      title: Blog
      description: Blog description
      collection: true
      Feedat: atom
      route: '/blog.atom'
  blog-json:
    id: blog
    options:
      title: Blog
      description: Blog description
      collection: true
      Feedat: json
      route: '/blog.json'

Display feed urls in the TWIG templates

You may easily display feed urls from example above in TWIG templates:

<a href="{{ url() }}/blog.atom">Atom 1.0</a>
<a href="{{ url() }}/blog.rss">RSS</a>
<a href="{{ url() }}/blog.json">JSON</a>

Version

1.0.0

Lincense

MIT

Dependencies

flextype: 0.9.16
twig: >=2.0.0

Categories

seo