Skip to main content

Django application that adds other useful fields to Django inplace edit

Project description

Inplace Edit Form Extra Fields

Information

Inplace Edit Form Extra Field is a Django application that adds other useful fields.

It is distributed under the terms of the GNU Lesser General Public License <http://www.gnu.org/licenses/lgpl.html>

Requeriments

And other eggs, but it is important: If you want to use one of the fields, you do not have to install its requirements

Demo

Video Demo, of django-inplaceedit and Django-inlinetrans (Set full screen mode to view it correctly)

https://github.com/Yaco-Sistemas/django-inplaceedit/raw/master/video-frame.png

Installation

After installing django inplace edit egg

In your settings.py

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    #.....................#
    'inplaceeditform',
    'inplaceeditform_extra_fields',
)

If you want overwrite the adaptors for any case in your project:

ADAPTOR_INPLACEEDIT = {'textarea': 'inplaceeditform_extra_fields.fields.AdaptorTinyMCEField',
                       'image': 'inplaceeditform_extra_fields.fields.AdaptorImageThumbnailField',
                       'fk': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteForeingKeyField',
                       'm2mcomma': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteManyToManyField'}

If you want, you can register these fields in your settings, with other keys:

ADAPTOR_INPLACEEDIT = {'auto_fk': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteForeingKeyField',
                       'auto_m2m': 'inplaceeditform_extra_fields.fields.AdaptorAutoCompleteManyToManyField',
                       'image_thumb': 'inplaceeditform_extra_fields.fields.AdaptorImageThumbnailField',
                       'tiny': 'inplaceeditform_extra_fields.fields.AdaptorTinyMCEField',}

And after when you want use this specific adaptor you indicate it, e.g.:

{% inplace_edit "content.field_name" adaptor="tiny" %}

Because these fields are not in django-inplaceedit

  • They have dependece of the other eggs
  • They are a particular solution
  • Theese do not work immediately, you have to code them

AdaptorAutoCompleteForeingKeyField and AdaptorAutoCompleteManyToManyField

These fields are dependent of Django Ajax Select. You have to create a channel (lookup)

{% inplace_edit "content.field_name" adaptor="auto_fk", lookup="my_lookup" %}

For more info, visit the doc of ajax select

It is recomended overwrite the next templates:

AdaptorImageThumbnailField

This field is dependent of Sorl thumbnail. You only should indicate the size.

{% inplace_edit "content.field_name" adaptor="image_thumb", size="16x16" %}

It can help you, configure in your settings:

THUMBNAIL_DEBUG = True

For more info, visit the doc of thumbnail

AdaptorTinyMCEField

{% inplace_edit "content.field_name" adaptor="tiny" %}

It’s very recommended that in your base.html you include the CSS to normalize the first element of the iframe

<link rel="stylesheet" href="{{ STATIC_URL }}adaptor_tiny/css/block_normalize.css">

Note

We use a tinyMCE (version 3.5.6) without changes, except we have added a inplaceedit plugin

Development

You can get the leading edge version of inplaceedit-extra-fields by doing a checkout of its repository:

https://github.com/goinnn/django-inplaceedit-extra-fields

0.0.8 (2012-11-12)

  • Fix a little error of the tinyMCE adaptor: Thanks to Yuego

0.0.7 (2012-08-21)

  • Improve the tinyMCE field, modify the settings of the tinyMCE for can do a real inplaceedit, the layout must be the same with the tinyMCE and with a piece of HTML:
    • Now The tinyMCE automatically load the css of the view
    • Create a normalize css, there is a problem with the first element of the documents of the iframe
    • Now you can overwrite the extra_mce_settings from settings
    • Now I can load some css and not load the content.css of the tinyMCE
    • Remove the csmutils dependence
    • Adapt the code to the new option in django-inplaceedit (autosave)
    • Improve the inplace_edit plugin of the tinyMCE editor
    • Update tinyMCE to last release

0.0.6 (2012-05-22)

  • Uncouple cmsutils of the tinyMCE widget overwriting two methods

0.0.5 (2012-05-22)

  • Now django-inplaceedit-extra-fields managing static files (backward compatible)

0.0.4 (2011-12-13)

  • Fixes a error in tinyMCE adaptor when the user has not edit permission
  • Add MANIFEST.in. Until now, the egg is impossible that work

0.0.3 (2011-12-09)

  • More easy overwrite the jquery-ui
  • More clean the code of tiny field

0.0.2 (2011-12-08)

  • Complete the README

0.0.1 (2011-12-08)

  • First version to AdaptorAutoCompleteForeingKeyField and AdaptorAutoCompleteManyToManyField
  • First version to AdaptorImageThumbnailField
  • First version to AdaptorTinyMCEField

Project details


Release history Release notifications

History Node

0.7.1

History Node

0.7.0

History Node

0.6.1

History Node

0.6.0

History Node

0.5.0

History Node

0.4.1

History Node

0.4.0

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.1

History Node

0.1.0

History Node

0.0.9

This version
History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-inplaceedit-extra-fields-0.0.8.tar.gz (575.2 kB) Copy SHA256 hash SHA256 Source None Nov 12, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page