Sha256: 9c7b8e99c73807c27711f9da4d35001de38de630aee8631abf854c50a7a412fc

Contents?: true

Size: 1.52 KB

Versions: 1

Compression:

Stored size: 1.52 KB

Contents

Cmor::Seo.configure do |config|
  # Set the resources, that will be shown in the backend menu.
  # 
  # Default: config.resources_controllers = -> {[
  #            Cmor::Seo::ItemsController,
  #            Cmor::Seo::MetaTagsController
  #          ]}
  # 
  config.resources_controllers = -> {[
    Cmor::Seo::ItemsController,
    Cmor::Seo::MetaTagsController
  ]}

  # Set the resources, that will be shown in the backend menu.
  # 
  # Default: config.resource_controllers = -> {[]}
  # 
  config.resource_controllers = -> {[]}

  # Set the services, that will be shown in the backend menu.
  # 
  # Default: config.service_controllers = -> {[]}
  # 
  config.service_controllers = -> {[]}

  # Set the sidebars, that will be shown in the backend menu.
  # 
  # Default: config.sidebar_controllers = -> {[]}
  # 
  config.sidebar_controllers = -> {[]}

  # Set the resources that will be available as seo targets when creating new
  # Cmor::Seo::Items.
  # 
  # Example:
  #
  # config.items_resource_autocomplete_options = {
  #   'Cmor::Blog::Post' => {
  #     scope: ->(term) { Cmor::Blog::Post.where("LOWER(title) LIKE :term", term: "%#{term.downcase}%") },
  #     id_method: :id,
  #     text_method: :title
  #   },
  #   'Cmor::Cms::Page' => {
  #     scope: ->(term) { Cmor::Cms::Page.where("LOWER(title) LIKE :term", term: "%#{term.downcase}%") },
  #     id_method: :id,
  #     text_method: :title
  #   }
  # }
  # 
  # Default: config.items_resource_autocomplete_options = {}
  # 
  config.items_resource_autocomplete_options = {}
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cmor_seo-0.0.40.pre spec/dummy/config/initializers/cmor_seo.rb