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-2.0.tar.gz
.
File metadata
- Download URL: fluentcms-pager-2.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aa843af7dc45c438e91b8d8704649b6d560fe7817284db323bf4b3c74536c5b |
|
MD5 | 745ef2a6f85806e255de9769daa9b899 |
|
BLAKE2b-256 | a301b77afddf10f2ddef388a91fbcf589f6ebafed6797888b10f76898c3936ac |
File details
Details for the file fluentcms_pager-2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: fluentcms_pager-2.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 | c4860e3488162d9164e83cb3a116c6431a7514c749f02734436ef1f3cc12d620 |
|
MD5 | e23610fe0e55fba6c7f4fbf7a43a187f |
|
BLAKE2b-256 | 48021c16dfc306fa5b76a344b9fd0a6713278d8d8db76a3fa8bb8d75e3b65630 |