Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing feature in CMS_PLACEHOLDER_CONF: HTML before and after placeholder #6623

Open
python2and3developer opened this Issue Feb 28, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@python2and3developer
Copy link

python2and3developer commented Feb 28, 2019

I miss these attributes in CMS_PLACEHOLDER_CONF:

  • before_html
  • after_html

The content of before_html is rendered before the placeholder and only if the placeholder is not empty.
The content of after_html is rendered after the placeholder and only if the placeholder is not empty.

This way you can add a container or a wrapper to a placeholder and the container or wrapper is only added if the placeholder is not empty. For example, to add <sidebar> and </sidebar> before and after the placeholder only if the placeholder contains plugins.

Do you think that this feature is interesting? If you think that it's interesting to include this to django-cms, I can help and create a branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.