Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > Django Plugins

    django-inplaceedit-extra-fields 0.0.8

    Download button

    No screenshots available
    Downloads: 126  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Pablo Martín | More programs
    LGPL v3 / FREE
    August 24th, 2012, 18:29 GMT [view history]
    ROOT / Internet / Django Plugins

     Read user reviews (0)  Refer to a friend  Subscribe

    django-inplaceedit-extra-fields description

    Django application that adds other useful fields to Django inplace edit

    django-inplaceedit-extra-fields is a Django app that adds other useful fields.

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

    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

    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

    This field is dependent of cmsutils.

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

    For more info, visit the doc of cmsutils

    Also you must link or copy the cmsutils/media/ directory in your project media directory

    ln -s cmsutils/media /path/to/your/project/media/

    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


    Product's homepage

    Requirements:

    · Python
    · Django
    · django-inplaceedit

    What's New in This Release: [ read full changelog ]

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

      


    TAGS:

    inplace edit | fields editor | Django inplaceedit | Django | inplace | editor

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM