Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Django CMS Placeholder Attribute
================================

Description
===========

``djangocms_placeholder_attr`` allow you to call a plugin model
attribute from a placeholder in
`django-cms <https://github.com/divio/django-cms>`__

Depends
=======

- `django-cms <https://github.com/divio/django-cms>`__

Installation
============

- Download the source and run ``python setup.py install``
- 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``

.. code:: django

{% placeholder_attr 'placeholder_name' 'plugin_model_class_name' 'model_attribute_name' %}

- ``show_placeholder_attr``

.. code:: django

{% 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``

Metadata

Release files for djangocms-placeholder-attr 1.0.1b

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-placeholder-attr 1.0.1b
File Size Uploaded
djangocms-placeholder-attr-1.0.1b.tar.gz 3.8 kB Details

Release files / djangocms-placeholder-attr-1.0.1b.tar.gz

Download URL djangocms-placeholder-attr-1.0.1b.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d2778ab19f96d42eba1c3ca639fa8e5fb36a5e4128ec84e4e4b0ca54bdfe56ce
BLAKE2b-256 checksum
How to use checksums
18aee1ec517c0acdf73b67342b06d041822c3c2413eb3bad8ef97bce3e6011de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

This release

1.0.1b This release

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