Sha256: f033c1c1e741a5dc2563de6589a5fbbf89605dce88e93fd959c4cf38d2754a74

Contents?: true

Size: 1.79 KB

Versions: 56

Compression:

Stored size: 1.79 KB

Contents

Cmor::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 = '<%= base_controller_class_name %>'
  #
  config.base_controller = '<%= base_controller_class_name %>'

  # 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 }

  # Sets the site title
  #
  # Default: config.site_title = Rails.application.class.to_s.deconstantize
  #
  config.site_title = Rails.application.class.to_s.deconstantize
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
cmor_cms-0.0.60.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.59.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.58.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.57.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.56.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.55.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.54.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.53.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.52.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.51.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.50.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.49.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.48.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.45.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.44.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.43.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.42.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.41.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.40.pre lib/generators/cmor/cms/install/templates/initializer.rb
cmor_cms-0.0.39.pre lib/generators/cmor/cms/install/templates/initializer.rb