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

What is a "Region"? #22

Open
guettli opened this issue Nov 20, 2020 · 4 comments
Open

What is a "Region"? #22

guettli opened this issue Nov 20, 2020 · 4 comments

Comments

@guettli
Copy link

guettli commented Nov 20, 2020

https://feincms3.readthedocs.io/en/latest/ref/regions.html

Please start with the bird-eye-perspective on this page: What is a Region?

@matthiask
Copy link
Member

Do you think the first paragraph on https://feincms3.readthedocs.io/en/latest/guides/templates-and-regions.html is clearer? If yes I should at least add links referencing the "guides" part of the documentation from the autogenerated API docs.

@guettli
Copy link
Author

guettli commented Nov 25, 2020

Sorry, your link talks about Regions, but it does not explain what a Region is.

@sha-red
Copy link

sha-red commented Nov 25, 2020

A region is a concept which allows to structure a single web page (or: the template for a single web page) into parts which then can be filled with arbitrary 'plugins'. As a second aspect regions have additional configuration options, e.g. you can restrict which plugins are avaible in the backend per region.

We also used regions to implement filtering of plugins or other kinds of preparations. E.g. a special case for a "references" region:exclude any plugins of type "footnote", also make a virtual region named "footnotes".

@matthiask
Copy link
Member

What @sha-red said is absolutely correct.

The Region class is described a here https://django-content-editor.readthedocs.io/en/latest/#parts but unfortunately this document doesn't explain what a Region should be either, just what its attributes are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants