GacoCms
Short description and motivation.
Usage
How to use my plugin.
Installation
Add this line to your application's Gemfile:
gem "gaco_cms"
And then execute:
$ bundle
Or install it yourself as:
$ gem install gaco_cms
rails railties:install:migrations
Add //= link gaco_cms
in app/assets/config/manifest.js
Extra fields
color_settings = {
tpl: 'my_fields/color',
default_value_tpl: 'my_fields/color_default_value',
translatable: false,
label: { en: 'Color' }
}
GacoCms::Config.add_extra_field(:color, color_settings)
Shorcodes
- page_content
- page_title
- page_photo
- page_field
- page_field_tpl
- page_img_field
- page_field_multiple
- page_grouped_fields
Contributing
Contribution directions go here.
License
The gem is available as open source under the terms of the MIT License.
Development
Build assets
Every time assests were changed, run the following command to recompile assets and commit them to the repository.
docker-compose run test bash
yarn build && yarn build:css && yarn build:css_front
# add github action to do pre-compilation automatically
# TODO: copy static assets into vendor/fontawesome and vendor/tinymce
TODOs
- Migration create default active theme
- Instead of themes, use themes, use sites (1 site by default)
- Migration create default page_type :pages, :posts, and sample page + sample post
- key make single varchar instead of jsonb
- Move default data created by migration to rake task:initial_data or initializer
- Once saved a page content, restore iframe scroll to previous position
- Add button "Open page" when page form
- Make page content field larger
- Add components instead of group fields