Skip to main content

Bootstrap 3 Pager element for django-fluent-contents

Project description

fluentcms-pager

https://img.shields.io/travis/django-fluent/fluentcms-pager/master.svg?branch=master https://img.shields.io/pypi/v/fluentcms-pager.svg https://img.shields.io/badge/wheel-yes-green.svg https://img.shields.io/pypi/l/fluentcms-pager.svg https://img.shields.io/codecov/c/github/django-fluent/fluentcms-pager/master.svg

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">&larr;</span> Older</a></li>
  <li class="next"><a href="#">Newer <span aria-hidden="true">&rarr;</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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluentcms-pager-3.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

fluentcms_pager-3.0-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file fluentcms-pager-3.0.tar.gz.

File metadata

  • Download URL: fluentcms-pager-3.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for fluentcms-pager-3.0.tar.gz
Algorithm Hash digest
SHA256 95cb7134de7e008a3234f9b097c3a5f8b03d7ae034308b7d31833dc455de22d5
MD5 0f47aad5b910d32ab9efca8f5d3616bf
BLAKE2b-256 f4ba1313fe56415761cd5d65a91438b6a4abce9a124e77095e11c8cce0668da1

See more details on using hashes here.

File details

Details for the file fluentcms_pager-3.0-py3-none-any.whl.

File metadata

  • Download URL: fluentcms_pager-3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for fluentcms_pager-3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 948ebf3eb264c959c78b6721e64d2894f9475242843d5ff300efdfcf49905e5f
MD5 48f7ec2c47e390ec3066c82bac572182
BLAKE2b-256 105b98503ff3b82bb75a8a2f8580ebef86727c6adecc11c1c8cd4450e8a42acb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page