Sha256: 50e6726d48698da151f4f78194ec5f583624323f9c7278d676a40c0b48c244e0

Contents?: true

Size: 1.44 KB

Versions: 25

Compression:

Stored size: 1.44 KB

Contents

Ecm::News.configure do |config|
  # Number of lines to render in news preview
  #
  # default: config.news_item_preview_lines = 3
  config.news_item_preview_lines = 3

  # Number of items that will be shown in #render_news
  #
  # default: config.render_news_default_count = 2
  config.render_news_default_count = 2

  # Accepted markup languages
  #
  # default: config.markup_languages = %w[ textile ]
  config.markup_languages = %w( textile )

  # Default markup language
  #
  # default: config.default_markup_language = 'textile'
  config.default_markup_language = 'textile'

  # Show or hide the publishing time for news
  #
  # Default: config.show_publish_time = true
  config.show_publish_time = true

  # CSS Classes for the preview container div
  #
  # Default: config.news_item_preview_div_classes = 'media ecm-news-item bottom-margin-2'
  #
  config.news_item_preview_div_classes = 'media ecm-news-item bottom-margin-2'

  # CSS Classes for the preview thumbnail link
  #
  # Default: config.news_item_preview_thumbnail_link_classes = 'col-lg-4'
  #
  config.news_item_preview_thumbnail_link_classes = 'col-lg-4'

  # Set the base controller for the contact form
  #
  # Default: config.base_controller = 'ApplicationController'
  #
  config.base_controller = 'ApplicationController'

  # Adds <notextile> tags around the to fix html output.
  #
  # Default: config.prevent_textile_rendering_in_html = true
  #
  config.prevent_textile_rendering_in_html = true
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
ecm_news2-5.2.0 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2-5.1.0 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2_backend-1.2.6 spec/dummy/config/initializers/ecm_news.rb
ecm_news2_backend-1.2.5 spec/dummy/config/initializers/ecm_news.rb
ecm_news2_backend-1.2.4 spec/dummy/config/initializers/ecm_news.rb
ecm_news2_backend-1.2.3 spec/dummy/config/initializers/ecm_news.rb
ecm_news2-5.0.1 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2_backend-1.2.2 spec/dummy/config/initializers/ecm_news.rb
ecm_news2-5.0.0 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2-4.0.0 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2-3.0.0 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2-2.0.11 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2-2.0.10 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2_backend-1.2.1 spec/dummy/config/initializers/ecm_news.rb
ecm_news2-2.0.9 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2_backend-1.2.0 spec/dummy/config/initializers/ecm_news.rb
ecm_news2_backend-1.1.3 spec/dummy/config/initializers/ecm_news.rb
ecm_news2_backend-1.1.1 spec/dummy/config/initializers/ecm_news.rb
ecm_news2-2.0.8 lib/generators/ecm/news/install/templates/initializer.rb
ecm_news2-2.0.5 lib/generators/ecm/news/install/templates/initializer.rb