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...
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: "https://localhost:3000/" into "https://mydomai...
Camaleon CMS Permit you to customize your domains for old domains or support multiple domains to a single site, like this: # Add an initializer in config/initializers/camaleon_map_sites.rbRails.app...
Camaleon CMS manage shortcodes which permit you to represent small code for a functionality or some special content, like sliders, tabs ...Camaleon CMS support for many shortcodes in the same page,...
When you worked in your development environment using sqllite3 DB, you will need to migrate your DB to Production DB (Mysql or Postgres). Export development.sqlite3 into sql format:CMD: sqlite3 pr...
For many reasons you can try to avoid/verify the visits for categories, posts or any other, then by this way you can do it: Create an initializer Create a before filter for :category on CamaleonCm...
By this way you can extend, overwrite a Camaleon CMS Post Model. Create an initializer # config/initializers/my_custom_cama_post.rbRails.application.config.to_prepare do CamaleonCms::Post.class_ev...
Enter your AWS + Cloudfront settings in Admin -> Settings -> General Site -> File System TabSample: After change your settings, go to media section to clear cache and fetch files from the ...
This is a sample which uploads a remote file to the CMS storage (local or aws): # lib/tasks/owen.rakenamespace :owen do desc "Test download external image" task download_image: :environment do incl...