A simple list of cards.
Project description
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.
=====================
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.
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
Built Distribution
File details
Details for the file wagtailblocks_cards-2.1.0.tar.gz
.
File metadata
- Download URL: wagtailblocks_cards-2.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08c29b0087e3a936d1b3e653b817895ea1492c7136b554e987661e637ae58e25 |
|
MD5 | d0beb2d7bd40e63b597d7553672f82da |
|
BLAKE2b-256 | c9bfead270abb2d8fb759ce1ae96bdf438e57ff661c35e64026935ae646d9e21 |
File details
Details for the file wagtailblocks_cards-2.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: wagtailblocks_cards-2.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a02b3ca3a9a185ea7c53d8f0a7258f4c0a77dd4bbe2851947a0d91c878f1ed5 |
|
MD5 | 5fcb3047cbd387d297e2454e0678c2bf |
|
BLAKE2b-256 | 478f336bdde8dbdbd5324e891239240c94d18c4ef073abc5888455b2d67f8373 |