1.0.23 • Published 5 years ago

ec-columns v1.0.23

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

EC Columns Widget

An Apostrophe CMS module to provide layout framework that will allow for 1-4 columns being added. Have control over narrow/full width and each column width.

Example

This widget is meant to have data entered in the following manner:

Quote: 'This statement is the content of the quote' Author: 'Porter L' Author Info: 'An Earlham College student from Berea, KY'

Install

From within your apostrophe project npm install --save ec-columns

Include widgets and bundle in app.js:

  bundles: [ 'ec-columns' ],
  modules: {
    'ec-columns': {},
    'ec-one-column-widgets': {},
    'ec-two-column-widgets': {},
    'ec-three-column-widgets': {},
    'ec-four-column-widgets': {},
    // ... other modules
}

In your page templates include: ex. /lib/modules/apostrophe-pages/views/pages/default.html

{% import "ec-columns:macros/utils.html" as utils with context %}

<main id="main-content">
{% block main %}
{{ utils.columns() }}
{% endblock %}
</main>

Customize

To add your own wigets in the drop down for each column. Overwrite your own custom.html In the example below I added ec-quote widget to my drop down. ex. /lib/modules/ec-columns/views/macros/custom.html

{% macro column(parent, name, imageSize) %}
  {{ apos.area(parent, name, {
    widgets: {
      'apostrophe-rich-text': {
        toolbar: [ 'Styles', 'Bold', 'Italic', 'Link', 'Unlink' ]
      },
      'apostrophe-images': {
        size: imageSize
      },
      'apostrophe-video': {},

      'ec-quote': {}
    }
  }) }}
{% endmacro %}

Libraries

The layout grid is defined by PURE CSS so there is no bootstrap conflicts.

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago