Skip to main content

A django-cms plugin with a better placeholder tag.

Unfortunately the {% placeholer %} tag of django-cms3 is not an assignment tag. This plugin adds a {% placeholder_as %} tag to address this issue.

Additionally, we also thought that it would be cool to allowed the use of any templatetag in Placeholder fields. This is extremely useful when linking via the {% url %} tag, for example.

Installation

To get the latest stable release from PyPi

pip install cmsplugin-template-placeholder

To get the latest commit from GitHub

pip install -e git+git://github.com/bitmazk/cmsplugin-template-placeholder.git#egg=cmsplugin_template_placeholder

Add cmsplugin_template_placeholder to your INSTALLED_APPS

INSTALLED_APPS = (
    ...,
    'cmsplugin_template_placeholder',
)

Before the new tags are available in your templates, load them by using

{% load cmsplugin_template_placeholder_tags %}

Usage

Import the tag and use it similar to the original {% placeholder %} tag:

{% load cmsplugin_template_placeholder %}
{% placeholder_as "placeholder_name" as output %}
{{ output }}

Contribute

If you want to contribute to this project, please perform the following steps

# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 cmsplugin-template-placeholder
make develop

git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch

Metadata

Release files for cmsplugin-template-placeholder 0.1

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

Source distribution (sdist)

Source distribution for cmsplugin-template-placeholder 0.1
File Size Uploaded Provenance Actions
cmsplugin-template-placeholder-0.1.tar.gz 6.6 kB Without provenance Details for cmsplugin-template-placeholder-0.1.tar.gz

Release files / cmsplugin-template-placeholder-0.1.tar.gz

Download URL cmsplugin-template-placeholder-0.1.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
91838b7299076ea41bc33049cf71b9c3fa6c4ab9edd54d18ce90ab7cbb6371d5
BLAKE2b-256 checksum
How to use checksums
3b2b88f352e95539b58474390229ad493cd29382864180b29f22ac42e6d2aff1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for cmsplugin-template-placeholder 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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