Skip to content

Latest commit

 

History

History
77 lines (50 loc) · 2.12 KB

README.rst

File metadata and controls

77 lines (50 loc) · 2.12 KB

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. :-)