django-fluent / fluentcms-bootstrap-grid

Bootstrap 3 grid containers for django-fluent-contents (pre-alpha - requires latest feature/container-items branch)

Repository from Github https://github.comdjango-fluent/fluentcms-bootstrap-gridRepository from Github https://github.comdjango-fluent/fluentcms-bootstrap-grid

fluentcms-bootstrap-grid

https://img.shields.io/travis/django-fluent/fluentcms-bootstrap-grid/master.svg?branch=master

Displaying a Bootstrap 3 grid in a page.

Installation

First install the module, preferably in a virtual environment. It can be installed from PyPI:

pip install fluentcms-bootstrap_-rid

First make sure the project is configured for django-fluent-contents.

Then add the following settings:

INSTALLED_APPS += (
    'fluentcms_bootstrap_grid',
)

FLUENT_CONTENTS_PLACEHOLDER_CONFIG = {
    'slot name': {
        'plugins': ('BootstrapRowPlugin', 'BootstrapColumnPlugin', ...),
    },
}

The database tables can be created afterwards:

./manage.py migrate

Frontend styling

The plugins are renderd with the HTML that Bootstrap prescribes:

<!-- the row that contains multiple columns -->
<div class="row">

    <!-- a single column -->
    <div class="col-xs-6">
        ..
    </div>

</div>

The standard Bootstrap 3 CSS will provide the proper styling for this.

Contributing

If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)

About

Bootstrap 3 grid containers for django-fluent-contents (pre-alpha - requires latest feature/container-items branch)

License:Apache License 2.0


Languages

Language:Python 97.7%Language:HTML 1.5%Language:CSS 0.7%