The picture plugin

New in version 0.9.0: The picture plugin provides a simple structured way to add images to the page content.

../_images/picture-admin.png

Pictures are outputted in a <figure> element and can optionally have a <figcaption>:

../_images/picture-html.png

Installation

Add the following settings to settings.py:

INSTALLED_APPS += (
    'fluent_contents.plugins.picture',
)

The plugin does not provide additional configuration options.

Using improved models fields

By default, the standard Django ImageField and URLField are used. By including django-any-imagefield and django-any-urlfield in the project, this application will use those fields instead. See the optional integration with other packages chapter to enable these features.

Configuration

The following settings are available:

FLUENT_PICTURE_UPLOAD_TO = '.'

FLUENT_PICTURE_UPLOAD_TO

The upload folder for all pictures. Defaults to the root of the media folder.