https://github.com/mkrl/camaleon-calendar
Camaleon CMS calendar plugin
https://github.com/mkrl/camaleon-calendar
Last synced: 11 months ago
JSON representation
Camaleon CMS calendar plugin
- Host: GitHub
- URL: https://github.com/mkrl/camaleon-calendar
- Owner: mkrl
- License: gpl-3.0
- Created: 2018-12-11T09:08:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-08-25T18:03:40.000Z (almost 7 years ago)
- Last Synced: 2025-01-18T11:11:38.884Z (over 1 year ago)
- Language: Ruby
- Size: 40 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calendar
Camaleon CMS calendar plugin
## Installation
Clone into `apps/plugins` and add plugin paths to your project Gemfile:
```ruby
# ...end of your Gemfile
require './lib/plugin_routes'
instance_eval(PluginRoutes.draw_gems)
# ...
gem 'calendar', path: 'apps/plugins/calendar'
```
## Usage
You can render your calendar partial with `[calendar_view]` shortcode anywhere you want.
Set up you preferred post type to be used as post source for the plugin and then navigate / link to `/calendar?m=[date]`, where date follows the `yearmonthday` format. For example:
- `2019` will show posts just from the entire 2019
- `201906` will query for posts in June 2019
- `20190629` will show posts from June 29 2019
This was coded as an emergency solution so it's not recommended to be used in production unless heavily modified and tested.
Be sure to modify your base calendar view @ `/app/views/plugins/calendar/front/index.html.erb` in order to properly render your posts.