Sha256: 8ef03483682e69aec30c21300fd7694d344b10b2bc8f48b4f23e886473bd3e94

Contents?: true

Size: 667 Bytes

Versions: 58

Compression:

Stored size: 667 Bytes

Contents

class Plugins::PluginClass::AdminController < CamaleonCms::Apps::PluginsAdminController
  include Plugins::PluginClass::MainHelper
  def index
  end

  # show settings form
  def settings
  end

  # save values from settings form
  def save_settings
    @plugin.set_options(params[:options]) if params[:options].present? # save option values
    @plugin.set_metas(params[:metas]) if params[:metas].present? # save meta values
    @plugin.set_field_values(params[:field_options]) if params[:field_options].present? # save custom field values
    redirect_to url_for(action: :settings), notice: 'Settings Saved Successfully'
  end
  # add custom methods below ....
end

Version data entries

58 entries across 58 versions & 2 rubygems

Version Path
camaleon_cms-2.6.4 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.6.3 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.6.2 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.6.1 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.6.0.1 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.6.0 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.5.3.1 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.5.3 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.5.2 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms_rails6-2.5.0 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.5.1 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.5.0 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.4.6.9 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.4.6.8 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.4.6.7 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.4.6.6 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.4.6.5 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.4.6.4 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.4.6.3 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb
camaleon_cms-2.4.6.2 lib/generators/camaleon_cms/gem_plugin_template/app/controllers/plugins/my_plugin/admin_controller.rb