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

Allowed plugins within {% page_placeholder %} template tag? #9

Closed
maartendraijer opened this issue Jul 23, 2012 · 3 comments
Closed

Comments

@maartendraijer
Copy link
Contributor

As far as I know it's not possible to limit the allowed plugins within a CMS page. I think this should be done via the {% page_placeholder %} template tag, as the placeholder_set & contentitem_set fields are already declared in the base model. But it's not supporting anything like that.

Am I trying to do this the wrong way around, or is this just not possible?

@vdboor
Copy link
Contributor

vdboor commented Jul 23, 2012

This is currently not possible, but I'd love to have it implemented.

This could indeed be implemented via the page_placeholder tag, or via a setting variable in settings.py, or a setting variable like Django CMS uses (see http://docs.django-cms.org/en/2.2/getting_started/configuration.html#cms-placeholder-conf). I think both would make sense to have. Strange I just didn't consider to extend the template tag at this point.

@maartendraijer
Copy link
Contributor Author

Another suggestion is to limit the amount of allowed content item types. For example, allow only one intro content type to the Home page.

@vdboor
Copy link
Contributor

vdboor commented Sep 27, 2012

I'm closing this ticket in favor of a tickets:

As this is the pages module, it only deals with the structure.
The contents (placeholders + content items) are handled by django-fluent-contents.

@vdboor vdboor closed this as completed Sep 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants