Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 973 Bytes

adding_app_news.md

File metadata and controls

25 lines (22 loc) · 973 Bytes

Adding App News

Pageflow supports being used together with the Krant engine to display app news inside the admin interface.

Pageflow plugins can use the Pageflow.news_item method to add news item without depending directly on Krant. News item are conventionally stored in a config/initializers/news directory containing one file per news item. This prevents merge conflicts when several pull requests each include news items. Namespace the news item with the name of your plugin:

# rainbow/config/initializers/news/some_new_feature.rb
Pageflow.news_item('rainbow.some_new_feature',
                   title: {
                     de: 'Ein neues Feature',
                     en: 'Some New Feature'
                   },
                   text: {
                     de: 'Eine mit *Markdown* formatierte Beschreibung.' ,
                     en: 'A description formatted using *Markdown*.'
                   })