Sha256: 30e4a147d54bb3c529a93267d80f65848ea9bd780074c13bb38aaff466d91c31

Contents?: true

Size: 1.64 KB

Versions: 40

Compression:

Stored size: 1.64 KB

Contents

# Biola WCMS Components

This provides reusable UX components for our differnet WCMS projects

## Installation

Add this line to your application's Gemfile:

    gem 'biola_wcms_components'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install biola_wcms_components

#### Dependencies

* ace-rails-ap
* coffee-rails
* sass-rails
* slim
* rails (this is not an explicit dependency but I haven't tested it using anything else)

## Usage

### Rails > 3.1

Include the following in `application.css.scss`.

    @import "biola-wcms-components";

Include the following in `application.js.coffee`.

    #= require biola-wcms-components


### Components

In your view file, you will render `wcms_component("path/to/component", options)`

Example:

    = wcms_component "forms/presentation_data_editor",
      schema: @generic_object.presentation_data_template.schema,
      data: @generic_object.presentation_data,
      form: f,
      embedded_image_url: create_embedded_images_url

Currently, look in `app/views/wcms_components` for available components.


#### Other requirements

* `current_user` - should be defined an ApplicationController. Should return user when logged in

#### Configuration

Create a new file called `/config/initializers/biola_wcms_components.rb`

    BiolaWcmsComponents.configure do |config|
      config.default_redactor_buttons = ['bold', 'italic', 'orderedlist', 'unorderedlist']
    end


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
biola_wcms_components-0.25.4 README.md
biola_wcms_components-0.25.3 README.md
biola_wcms_components-0.25.2 README.md
biola_wcms_components-0.25.1 README.md
biola_wcms_components-0.25.0 README.md
biola_wcms_components-0.24.3 README.md
biola_wcms_components-0.24.2 README.md
biola_wcms_components-0.24.1 README.md
biola_wcms_components-0.24.0 README.md
biola_wcms_components-0.23.0 README.md
biola_wcms_components-0.22.0 README.md
biola_wcms_components-0.21.0 README.md
biola_wcms_components-0.20.0 README.md
biola_wcms_components-0.19.0 README.md
biola_wcms_components-0.18.1 README.md
biola_wcms_components-0.18.0 README.md
biola_wcms_components-0.17.0 README.md
biola_wcms_components-0.16.0 README.md
biola_wcms_components-0.15.3 README.md
biola_wcms_components-0.15.2 README.md