Sha256: 67376b2af384423a5609c619ce75aeacd656b65fc91b341667db14f57ae6226c

Contents?: true

Size: 1.59 KB

Versions: 14

Compression:

Stored size: 1.59 KB

Contents

Ecm::Cms.configure do |config|
  # Set the default handler for pages, partials and templates
  #
  # Default:   config.default_handlers = {
  #              page:     :textile,
  #              partial:  :textile,
  #              template: :textile
  #            }
  #
  config.default_handlers = {
    page:     :textile,
    partial:  :textile,
    template: :textile
  }

  # Set the base controller for the page controller
  #
  # Default: config.base_controller = 'FrontendController'
  #
  config.base_controller = 'FrontendController'

  # Set the property keys for navigation items. This keys will be accessible through the create/edit form.
  #
  # Example: You configured vaigation_item_properties like this:
  #
  #     config.navigation_item_properties = [:data_add_icon]
  #
  #  Then you created a navigation item with data_add_icon = 'earphone'.
  #
  # The li-element will be rendered like this:
  #
  #     <li id="contact" data_add_icon="earphone">
  #
  # Default: config.navigation_item_properties = [:data_add_icon]
  #
  config.navigation_item_properties = [:data_add_icon]

  # Fallback to the given locale, if no navigation is found for the actual locale.
  # Set to false to disable fallback. Must be a proc. Two params are passend to the
  # proc: The navigation name and the actual locale.
  # 
  # Example: config.navigation_locale_fallback = ->(navigation_name, locale) { navigation_name, localeI18n.locale }
  # 
  # Default: config.navigation_locale_fallback = ->(navigation_name, locale) { false }
  # 
  config.navigation_locale_fallback = ->(navigation_name, locale) { I18n.default_locale }
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ecm_cms2-4.1.1 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-4.1.0 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-4.0.1 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-4.0.0 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-3.0.3 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-3.0.2 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-3.0.1 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-3.0.0 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-2.1.4 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-2.1.3 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-2.1.2 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-2.1.1 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-2.1.0 lib/generators/ecm/cms/install/templates/initializer.rb
ecm_cms2-2.0.4 lib/generators/ecm/cms/install/templates/initializer.rb