Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Allow you to call a plugin model attribute from a placeholder in django-cms

Project Description

Django CMS Placeholder Attribute

Description

djangocms-placeholder-attr allow you to call a plugin model attribute from a placeholder in django-cms

Depends

Installation

  • use pip pip install djangocms-placeholder-attr
  • Put in your INSTALLED_APPS: INSTALLED_APPS += ('djangocms-placeholder-attr', )

Usage

cms_placeholder_attr provide two tags placeholder_attr and show_placeholder_attr which are similar to django-cms placeholder and show_placeholder tags, but plugin model oriented.

  • placeholder_attr
{% placeholder_attr 'placeholder_name' 'plugin_model_class_name' 'model_attribute_name' %}
  • show_placeholder_attr
{% show_placeholder_attr 'placeholder_name' 'placeholder_id' 'plugin_model_class_name' 'model_attribute_name' %}

Be sure to have a placeholder named placeholder_name to use this plugin.

if you have a foreign key attribute you can use the following syntax: my_fk_attribute.an_attribute_from_the_fk

Release History

This version
History Node

1.0.3

History Node

1.0.2

History Node

1.0.1

History Node

1.0.1b

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
djangocms-placeholder-attr-1.0.3.tar.gz
(4.8 kB) Copy SHA256 Hash SHA256
Source None Oct 4, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting