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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for wagtailblocks_cards-2.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40c4608122e2400153cd79fbaa831fac911c2351ec81461c0cff2eabf417627d |
|
MD5 | 4048690c606e0402352d1c731f4e4d7b |
|
BLAKE2b-256 | a034532d270ed4eec00e587359c8f3f9c047366e2afb3aca199f3195cc87f674 |