Settings (Options) module for OptimaCMS
Add support to edit options in OptimaCMS admin area. Options are managed by gem simple_options.
Install
install simple_options
read simple_options
Install optimacms_options
Gemfile:
gem 'simple_options'
gem 'optimacms_options'
bundle:
bundle install
routes:
# config/routes.rb
# optimaCMS modules
mount Optimacms::Engine => "/", :as => "cms_options"
Add links to Admin area menu:
# lib/optimacms/admin_menu/admin_menu.rb
module Optimacms
module AdminMenu
class AdminMenu
include Optimacms::Concerns::AdminMenu::AdminMenu
def self.get_menu_custom
[
{
title: 'Settings', route: nil,
submenu: [
{title: 'Settings', url: '/'+Optimacms.config.admin_namespace+'/options' },
]
}
]
end
end
end
end