Camaleon CMS - Sree is a plugin for Camaleon CMS to add Camaleon CMS into Spree CMS
MIT License
Camaleon CMS - Spree is a plugin of Camaleon CMS to add Camaleon CMS into Spree CMS This plugin permit you to add custom fields for Spree Products by simple Drag and Drop, add custom fields for Camaleon Contents using Spree Products and Categories, also permits to manage your menus from Camaleon CMS.
rake spree_auth:admin:create
"user_model": "Spree::User",
"admin_path_name": "store_admin",
gem 'camaleon_spree'
bundle install
rake camaleon_cms:generate_migrations
rake db:migrate
Sample template for Spree Page using related products: template_product_page.html.erb Copy inside your app/apps/themes/[camaleon current theme folder]/views/template_product_page.html.erb and assign it in page edit form.
Sample frontend show product custom fields _product_custom_fields.html.erb Copy inside your app/views/defaces/product_custom_fields.html.erb and create a deface for Spree, like:
# config/initializers/spree_defaces.rb
Rails.application.config.to_prepare do
Deface::Override.new(
virtual_path: 'spree/products/show',
name: 'cama_product_view_custom_fields',
insert_bottom: '[data-hook="product_taxons"]',
partial: 'defaces/product_custom_fields'
)
end
Add Camaleon CMS Menus in Spree Layout (Download sample template here) Copy to app/views/defaces/_layout_menus.html.erb and create a deface for Spree, like:
# config/initializers/spree_defaces.rb
Rails.application.config.to_prepare do
Deface::Override.new(
virtual_path: 'spree/layouts/spree_application',
name: 'cama_menus_in_spree',
insert_top: '[data-hook="body"]',
partial: 'defaces/layout_menus'
)
end
Demonstration: http://spree.tuzitio.com/
More information here: http://camaleon.tuzitio.com/store/plugins/camaleon-spree