Sha256: a25e8ce1412bc3649519645e9e5e1fd7d05af33583f9cf17357e27103c0be566
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 | lib/generators/cmor/seo/install/templates/initializer.rb |