cmsplugin-biography is a Django CMS plugin that allows the user to create and refer to biographical information. For instance, you can create a biography of a keynote speaker and refer to the biography in multiple locations across a website. Currently, the plugin manages biographies of people.
This work is released under the MIT license. See LICENSE
for more details.
- Load your project's virtualenv.
- Run
pip install git+git://github.com/kfr2/cmsplugin-biography.git
. - Add 'cmsplugin_biography' and 'easy_thumbnails' to the
INSTALLED_APPS
setting. - Set
THUMBNAIL_DEFAULT_STORAGE = DEFAULT_FILE_STORAGE
(or to your storage backend of choice) insettings.py
. - Run
python manage.py syncdb
orpython manage.py migrate
if you have South installed.
easy-thumbnails accepts a THUMBNAIL_ALIASES setting that allows you to define your standard thumbnail sizes and options. The alias can then be referred to in the biography templates: {{ instance.image|thumbnail_url:'alias_name' }}
If you would like to override the default person biography template, create your own version at (TEMPLATE_DIR)/cmsplugin_biography/person.html
. You will likely find the existing template useful as a reference.
- CKEditor will be used on admin text fields via djangocms-text-ckeditor
- easy-thumbnails will be used to create thumbnails of uploaded images.
- If you're using django-cms-search, the rendered full text of the plugin will be added to the search index.