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.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > HTTP (WWW)

    redsolutioncms.django-tinymce-attachment 0.4.1

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Alexander Ivanov | More programs
    LGPL / FREE
    June 4th, 2012, 08:59 GMT [view history]
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    redsolutioncms.django-tinymce-attachment description

    Allows to attach files and images for any objects, specified in configuration

    redsolutioncms.django-tinymce-attachment allows to attach files and images for any objects, specified in configuration. If you use TinyMCE to edit object content, this module makes for you links to files in hyperlink select box and list of images in image select box.

    Installation:

     1. Put attachment as LAST item to your INSTALLED_APPS in your settings.py within your Django project.
     2. Sync your database

     ./manage.py syncdb

    Usage:

    In settings.py:

    Specify Models for which you`d like to add images and files

    ATTACHMENT_FOR_MODELS = [
     '< app >.models.< Model >',
    ]


    Specify Model to be listed in link-list

    ATTACHMENT_LINK_MODELS = [
     '< app >.models.< Model >',
    ]


    For objects listed in link-list these attributes will be used:

     * get_absolute_url() to retrieve url.
     * __unicode()__ to retrieve verbose name.

    In urls.py:

    Add attachment to urls.py BEFORE admin/

    (r'^', include('attachment.urls')), # Must be placed before admin/

    Example:

    settings.py

    INSTALLED_APPS = (
     ...
     'attachment',
    )

    ATTACHMENT_FOR_MODELS = [
     'item.models.Item',
    ]

    ATTACHMENT_LINK_MODELS = [
     'news.models.News',
    ]

    TINYMCE_DEFAULT_CONFIG = {
     'external_image_list_url': 'images/',
     'external_link_list_url': 'links/',
    }


    urls.py

    urlpatterns += patterns('',
     (r'^', include('attachment.urls')), # Must be placed before admin/
     (r'^admin/', include(admin.site.urls)),
    )


    Now you can attach images and files to Item object. After you will save Item-object in TinyMCE editor for this page will be available:

     * attached images in list of images.
     * attached files in list of links.
     * all News objects in list of links.


    Product's homepage

    Requirements:

    · Python

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

    · Ordering by new "position" field enabled.

      


    TAGS:

    TinyMCE attachements | attach files | attach images | Django | TinyMCE | attachements

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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