Add extra icons to your Wagtail project.
Project description
Wagtail Extra Icons
Add extra icons to your Wagtail project.
Install
pip install wagtailextraicons
Then add wagtailextraicons
to your installed apps:
INSTALLED_APPS = [
...
'wagtailextraicons'
]
Usage
Icons are namespaced as extraicons--
to avoid clashing with existing Wagtail icons. You can add the extra icons to
your StreamField blocks like any other:
content = StreamField([
(
'paragraph',
blocks.RichTextBlock(icon='extraicons--paragraph')
),
])
You can also add the extra icons to your own custom StructBlock
classes:
class PersonBlock(blocks.StructBlock):
person = SnippetChooserBlock('app.Person')
text = blocks.RichTextBlock()
class Meta:
icon = 'extraicons--person'
Reference the Wagtail docs for all the ways to include icons.
Authors
- Sam Costigan Octave
License
This project is licensed under the BSD License - see the LICENSE.md file for details
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wagtailextraicons-0.1.0.tar.gz
(19.8 kB
view hashes)
Built Distribution
Close
Hashes for wagtailextraicons-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a37395d40c5c5fc685bbf01fa798d8296583ed5f3b528cd65508b1e74274eb62 |
|
MD5 | 4c1a1ecd8be5c831f848a980a3f616a5 |
|
BLAKE2b-256 | 232df9d871b0b3938eb53f69f8f575fa061c849fed8e1c58dc612232b3ce82b3 |