Custom Content Type Permissions
October 24, 2016 12:11

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 More
How to customize post type routes
November 24, 2015 10:34

Sometimes 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 More
How to render custom labels in draw_languages ?
June 04, 2018 13:38

Added option to render custom labels for draw_languages.Sample:  <%= current_site.draw_languages("language-list list-inline", true) do |lang, is_current| %> <label><%= lang %>---&...

Read More
How to add new frontend language?
November 01, 2017 09:22

This 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 More
How to add new admin language?
September 05, 2016 22:59

This 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 More
Custom Authentication
October 19, 2016 22:14

Option 1) Change Authentication Into Devise Install Camaleon CMS Install devise gem 'devise'rails g devise:installrails g devise blogger Change migration disabling existent attributes (email, ti...

Read More
Custom AWS Params
October 26, 2016 14:46

Sample 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 More
Custom Frontend Login
October 26, 2016 23:17

This 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
Create Simple Custom Field
November 08, 2016 11:36

#/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
Create Advanced Custom Field
November 08, 2016 11:29

#/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 More