Skip to main content

djangocms-stacks

Stacks: re-usable content blocks

To put it in terms of django CMS: This is re-usable Placeholder. It can used in any template as a named entity:

{% load stack_tags %}
{% stack 'my_footer' %}

This will create a Stack with the my_footer identifier. It can be edited in admin.

Stacks can also be used inside regular placeholders. Suppose you have some content that you want to re-use in multiple places: Make a stack and insert that stack with the StackLinkPlugin wherever you need it.

Stacks is multilingual (using the multilinguality of cms-plugins. So make sure your stack is translated into the language of the page you place it on.

There is currently no validation in place to prevent infinite loops… so please don’t put a StackLinkPlugin inside a Stack with a link to itself.

Requirements

  • python>=2.6

  • Django>=1.3

  • django-cms>=2.3

Installation and Configuration

pip install djangocms-stacks

in settings:

INSTALLED_APPS = (
    [...]
    'stacks',
    'django_select2',
    [...]
)

add the Django-Select2 urls:

urlpatterns = patterns('',
    [...]
    url(r'^select2/', include('django_select2.urls')),
    [...]
)

create the database tables:

python manage.py migrate stacks

Idea based on https://github.com/divio/django-contentblock .

history

0.2.3 (2014-03-15)

Adds setting to disable stacks widget

0.2.2 (2012-12-10)

Adds Permission checks for ajax requests

0.2.1 (2012-12-10)

Adds Django-Select2 as selection field

0.2 (2012-12-10)

Initial release. Basic multilingual stacks.

Metadata

Release files for djangocms-stacks 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djangocms-stacks 0.2.3
File Size Uploaded
djangocms-stacks-0.2.3.tar.gz 8.1 kB Details

Release files / djangocms-stacks-0.2.3.tar.gz

Download URL djangocms-stacks-0.2.3.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
54c121659ca4d2f9d08650546b3a4f1ffb07313309e43fe5de0b4ba4cbf628e5
BLAKE2b-256 checksum
How to use checksums
52dc25c7c30538a0d1341537c47bf30cec729746b45eacc45d78f8d8e812da53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.3 This release

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page