Skip to main content

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

Metadata

Release files for djangocms-placeholder-attr 1.0.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-placeholder-attr 1.0.3
File Size Uploaded Provenance Actions
djangocms-placeholder-attr-1.0.3.tar.gz 4.8 kB Without provenance Details for djangocms-placeholder-attr-1.0.3.tar.gz

Release files / djangocms-placeholder-attr-1.0.3.tar.gz

Download URL djangocms-placeholder-attr-1.0.3.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b9ddc9e242f2118fa15ab359ebaaeec09acae7c48adbf600c9cf98143453d9c2
BLAKE2b-256 checksum
How to use checksums
143e5a616e11acec5629c30cb4bd52bc34110e8283eae4b1a92c2e64f6b7dea2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for djangocms-placeholder-attr 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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