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 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

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

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.Sample theme used: themes/default Create a controller within your themeapps/themes/default/frontend_sessions_controller.rb class T...

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>Imag...

Read More
Sample Theme Helper
November 08, 2016 11:24

module 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
How to migrate to another domain
November 16, 2016 13:20

These are the steps to migrate/deploy to another domain: Export to sql your DB Replace your old domain to the new domain in the SQL, like: "http://localhost:3000/" into "http://mydomain.com/" Repl...

Read More