Skip to main content
Wagtail Blocks: Cards
=====================

This Wagtail block can be used to add a series of cards. It is styled on the editor screen.

![Screenshot](screenshot.png)

Installation
------------

Run:

pip install wagtailblocks-cards

Then add `wagtailblocks_cards` to your installed apps.

Usage
-----

A CardsBlock is just a ListBlock with extra styling on the editor screen. Use it the exact same way as a ListBlock.

from wagtailblocks_cards.blocks import CardsBlock

Then:

body = StreamField([
('cards', CardsBlock(MyCustomBlock()))
])

Replace `MyCustomBlock()` with a custom block of your choice.

Finally, template as usual.


Notes
-----

You can also add a CardsBlock inside of a StructBlock or other structual block types for more control. You may want to inject more custom CSS to make it span the full width if you aren't using help text, or change the number of columns.

If [wagtailfontawesome](https://github.com/alexgleason/wagtailfontawesome) is installed, this app will detect it and use [fa-clone](http://fontawesome.io/icon/clone/) by default.


Metadata

Release files for wagtailblocks-cards 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wagtailblocks-cards 2.1.0
File Size Uploaded Provenance Actions
wagtailblocks_cards-2.1.0.tar.gz 3.0 kB Without provenance Details for wagtailblocks_cards-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for wagtailblocks-cards 2.1.0
File Interpreter ABI Platform Actions
wagtailblocks_cards-2.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for wagtailblocks_cards-2.1.0-py2.py3-none-any.whl

Total release size: 8.3 kB

Release files / wagtailblocks_cards-2.1.0.tar.gz

Download URL wagtailblocks_cards-2.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
08c29b0087e3a936d1b3e653b817895ea1492c7136b554e987661e637ae58e25
BLAKE2b-256 checksum
How to use checksums
c9bfead270abb2d8fb759ce1ae96bdf438e57ff661c35e64026935ae646d9e21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / wagtailblocks_cards-2.1.0-py2.py3-none-any.whl

Download URL wagtailblocks_cards-2.1.0-py2.py3-none-any.whl
Size 5.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7a02b3ca3a9a185ea7c53d8f0a7258f4c0a77dd4bbe2851947a0d91c878f1ed5
BLAKE2b-256 checksum
How to use checksums
478f336bdde8dbdbd5324e891239240c94d18c4ef073abc5888455b2d67f8373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for wagtailblocks-cards 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page