Steps: Create a hook def hook_for_available_user_roles_list(args) args[:roles_list][:post_type] << {:key=>"delete_category", :label=>"Delete Category", :description=>"Permits delet...
Read MoreSometimes is necessary to use custom url's for post types (content groups), these are the steps to customize: Append custom url support in your config/route.rb scope PluginRoutes.system_info["rela...
Read MoreThis are the steps to add a new language for Admin Panel. Create a new yml file in config/locales/camaleon_cms/my_locale.yml Add your language key in config/system.json =>available_languages, c...
Read MoreThis are the steps to add a new language for Admin Panel. Create a new yml file in config/locales/camaleon_cms/admin/my_locale.yml Add your language name in config/locales/camaleon_cms/languages.y...
Read MoreOption 1) Change Authentication Into Devise Install Camaleon CMS Install devise gem 'devise'rails g devise:installrails g devise blogger Change migration disabling existent attributes (emai...
Read MoreSample to add and read extra attribute from AWS for each file: def my_hook_for_on_uploader(args) args[:aws_settings][:aws_file_upload_settings] = lambda{|settings| settings[:cache_control] = 'max-a...
Read MoreThis is a sample to add your custom frontend login for your theme (Be careful with theme folder name). Create a controller within your themeapps/themes/{theme_folder_name}/frontend_sessions_contro...
Read More#/themes/e_shop/views/custom_field/_country_select.html.erb<div class="group-input-fields-content"> <%= select_tag "#{field_name}[#{field.slug}][values][]", options_for_select(ISO3166::Co...
Read More#/themes/e_shop/views/custom_field/_my_slider.html.erb <div class="group-input-fields-content" data-callback-render="render_my_custom_slider"> <div class="form-group"> <label>Ima...
Read Moremodule Themes::PerspectiveTheme::MainHelper def self.included(klass) klass.helper_method [:perspective_social_networks] rescue "" # here your methods accessible from views end def perspective_theme...
Read More