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 > Django Plugins

    django-staticblocks 0.5

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Ethan Jucovy and Rob Marianski | More programs
    GPL v3 / FREE
    October 31st, 2009, 04:21 GMT
    ROOT / Internet / Django Plugins

     Read user reviews (0)  Refer to a friend  Subscribe

    django-staticblocks description

    Use Django flatpages as static page block snippets

    django-staticblocks is a Django application to use Django flatpages as static page block snippets.

    Static Blocks:

    Static blocks provides you with tools that lets content managers easily include flatpage content as a snippet in your templates.

    The template designer will define page blocks in the templates. The content managers will choose which flatpage to use as the snippet.

    You must have 'django.contrib.flatpages' in your INSTALLED_APPS.

    To install, add 'staticblocks' to your INSTALLED_APPS and re-run syncdb.

    Using it:

    On the template level, define your static blocks with arbitrary string labels by passing the label into the scope of the included template snippet:

    {% with "firstpageblock" as blockname %}
     {% include 'staticblock/widgets/block.html' %}
    {% endwith %}

    On the site, superusers will now be able to associate that page block with a flatpage, which will be pulled in as page content into that block.

    You can customize the layout of the pulled-in block by editing or forking the templates staticblock/templates/staticblock/widgets/block.html and/or staticblock/templates/staticblock/widgets/title.html


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    Django flatpages | page block snippets | static blocks | Django | flatpages | blocks

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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