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
-----
Include the block wherever relevant and add it to any StreamField.
from wagtailblocks_cards.blocks import CardsBlock
Then:
body = StreamField([
('cards', CardsBlock())
])
Finally, template the block as usual.
Fields
------
Use the following names when templating:
* image - ImageChooserBlock
* title - CharBlock
* text - TextBlock
* link - PageChooserBlock
=====================
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
-----
Include the block wherever relevant and add it to any StreamField.
from wagtailblocks_cards.blocks import CardsBlock
Then:
body = StreamField([
('cards', CardsBlock())
])
Finally, template the block as usual.
Fields
------
Use the following names when templating:
* image - ImageChooserBlock
* title - CharBlock
* text - TextBlock
* link - PageChooserBlock
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-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bdfa13f6391449982b6fdd136d9d3cdb1df59a668c34f44da2565dbfca134b4 |
|
MD5 | af397a7d9346b2dc91fc994500673759 |
|
BLAKE2b-256 | 8e0eb438dc4a7056cbf95d1232177f9b8cdb1793a2d40ad47899c46f96375354 |