django-fluent-contents
latest
  • Quick start guide
  • Configuration
  • The template tags
  • Optional integration with other packages
  • HTML Text Filters
  • Bundled Content Plugins
    • Standard plugins
    • Media
    • Interactivity
      • The commentsarea plugin
      • The disquscommentsarea plugin
      • The formdesignerlink plugin
        • Installation
        • Configuration
    • Programming
    • Advanced
  • Creating new plugins
  • Multilingual support
  • Creating a CMS system
  • API documentation
  • Changelog
django-fluent-contents
  • Docs »
  • Bundled Content Plugins »
  • The formdesignerlink plugin
  • Edit on GitHub

The formdesignerlink plugin¶

The formdesignerlink plugin displays a form, created by the django-form-designer-ai module.

../_images/formdesignerlink-admin.png

The form is displayed at the website:

../_images/formdesignerlink-html.png

Note

While the form_designer interface may not be fully up to the “UI standards” of django-fluent-contents, it is however a popular module, and hence this plugin is provided!

Installation¶

Install the dependencies via pip:

pip install django-fluent-contents[formdesignerlink]

This installs django-form-designer-ai.

Add the following settings to settings.py:

INSTALLED_APPS += (
    'form_designer',
    'fluent_contents.plugins.formdesignerlink',
)

To display previews, the form_designer application also requires an additional line in urls.py:

urlpatterns += [
    url(r'^forms/', include('form_designer.urls')),
]

Each page can now be enriched with a form, that was created by the form_designer application.

Configuration¶

To customize the output, configure the django-form-designer-ai application via the settings file. Some relevant settings are:

FORM_DESIGNER_DEFAULT_FORM_TEMPLATE
Defines the default template to use to render a form. For example, the template can be rendered with django-uni-form.
FORM_DESIGNER_FORM_TEMPLATES
Defines a list of choices, to allow users to select a template.
FORM_DESIGNER_FIELD_CLASSES
A list of choices, to define which Django field types are allowed.
FORM_DESIGNER_WIDGET_CLASSES
A list of choices, to define which Django widget types are allowed.

It is also highly recommended to overwrite the form_designer/templates/html/formdefinition/base.html template, which is used to provide previews for the form in the admin interface.

Further information can be found in the source code of django-formdesigner. (e.g. settings.py).

Next Previous

© Copyright 2011-2017, Diederik van der Boor Revision c82b16ce.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: latest
Versions
latest
stable
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.