No commit activity in last 3 years
No release in over 3 years
Options(Settings) module for OptimaCMS.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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