Skip to main content

Add a person and a persons index pages to Wagtail as well as a person block for StreamFields.

Project description

Wagtail Person

On a CMS, we regularly need to represent an author, a speaker, a person. To avoid repetition and duplication of datas about this, this app add a person model to Wagtail, with admin UI. Do not hesitate to use it on your blog or lectures appilaciton.

This model is accompanied by a Person page model and a Persons index page model. Each Person page is linked to a Person model to see it on your website.

This app also provide a basic CSS and templates, feel free to customize it.

Important

Since version 0.9.8, the Person Page model has been split in 2 models:

  • A Person model
  • A Person page model, with a many2one to a Person model

Install

Simply install it from pypi.org:

pip install wagtailperson

Add this app to django installed app in your settings.py:

INSTALLED_APPS = [
    # …
    'wagtailperson',
    # …
    'wagtail.contrib.modeladmin',
    # …
    ]

Then, finally, apply migration scripts:

./manage.py migrate wagtailperson

Use

This application add a new entry to the administration menu, called "Author or Person". From this menu, you can add a new author or person.

If you want to link one of your wagtail page models, or django models, to a person: Simply add a many2one field linked to wagtailperson.models.Person.

This application also provide 2 pages models:

  • A Person page: Show puplicly someone, can be used mostly everywhere in the pages tree
  • A Persons index page: A root page for Persons pages, it list each of Persons pages it had as children pages and can only have Person pages as children

The person index page can be useful to group persons, globally or per group.

A person got multiple fields:

  • Picture
  • Name
  • Tags
  • Introduction
  • Abstract

This application also provide a person block for StreamField, at wagtailperson.blocks.PersonBlock. Feel free to use it on your models StreamField.

Development

The source code repository provide a full Django project, so you can easily work with wagtailperson for testing you modifications.

Simply use these two steps in the source code working directory:

./manage.py migrate
./manage.py runserver

Licence

LGPLv3

Author

Sébastien Gendre <seb@k-7.ch>

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

wagtailperson-0.11.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wagtailperson-0.11.0-py3-none-any.whl (30.1 kB view details)

Uploaded Python 3

File details

Details for the file wagtailperson-0.11.0.tar.gz.

File metadata

  • Download URL: wagtailperson-0.11.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for wagtailperson-0.11.0.tar.gz
Algorithm Hash digest
SHA256 6bce45d0f08d3283c42e8322dbf6b26751f60ec7868962a4da522107c9463ee9
MD5 ba5f8acc627eb312d5e4b944fca6c2ad
BLAKE2b-256 05b33d3669b4c12aaa8b85eca319bea9e7ca93ffd97569b0c103a0e43d52758a

See more details on using hashes here.

File details

Details for the file wagtailperson-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: wagtailperson-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 30.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.3

File hashes

Hashes for wagtailperson-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9d24e8ecef887c84b2596fe362c1fe820273be2dc6c896c461514eec8bc19b0
MD5 aea4e23ad6b1d7d992a165606ef7e9a4
BLAKE2b-256 8299234c197b15f4ec842f9a4615c821e0e7cf4051bc7a8fd29772021a9c3c1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page