Bootstrap 3 Pager element for django-fluent-contents
Project description
fluentcms-pager
Displaying a Bootstrap 3 pager in a page
Features:
Arrows
Previous/next links
Automatic title retrieval
Installation
First install the module, preferably in a virtual environment. It can be installed from PyPI:
pip install fluentcms-pager
First make sure the project is configured for django-fluent-contents.
Then add the following settings:
INSTALLED_APPS += (
'fluentcms_pager',
)
The database tables can be created afterwards:
./manage.py migrate
Frontend styling
The pager is renderd with the HTML that Bootstrap prescribes:
<ul class="pager">
<li class="previous"><a href="#"><span aria-hidden="true">←</span> Older</a></li>
<li class="next"><a href="#">Newer <span aria-hidden="true">→</span></a></li>
</ul>
The standard Bootstrap 3 CSS will provide a reasonable styling for this, which can either be overwritten, or replaced in your own CSS files.
Contributing
If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fluentcms-pager-1.0.tar.gz
.
File metadata
- Download URL: fluentcms-pager-1.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 129f48b2da408761278b82145bbeb34fb491df5a8f38ddf7c2e7177c342998d4 |
|
MD5 | 110ea159f96878dc3e457dd5def57765 |
|
BLAKE2b-256 | ffbaf2d365ff18d848ec1d491bc367e4bc4bedb037e26f73294de2f024166d96 |
File details
Details for the file fluentcms_pager-1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fluentcms_pager-1.0-py2.py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f0cfbd9be1adc472d80c88c5af1417fb861d4a38f330afb1ed1c87df1d190fe |
|
MD5 | 86d5df0704f2826a76923f61be0fb3f5 |
|
BLAKE2b-256 | 9c7ced5df0932de49ac1dea8506aeacc6075c56a03430471e2844c92a1d9319d |