plone/content/creating.html outdated for dexterity content (folder restrictions)
Open
Nobody has claimed this yet.
31 needs: help
33 needs: docs
42 lvl: moderate
99 tag: Plone 6.x
- Dominant language
- Makefile
- Stars
- 106
- Forks
- 190
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 1
Description
covers folder restrictions only for AT content but no support for Dexterity content.
The API for DX content is similar and available through an adapter:
from Products.CMFPlone.interfaces import ISelectableConstrainTypes
aspect = ISelectableConstrainTypes(self.context)
aspect.setConstrainTypesMode(data['constrain_types_mode'])
aspect.setLocallyAllowedTypes(allowed_types)
aspect.setImmediatelyAddableTypes(immediately_addable)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with plone/content/creating.html and its “Restricting available types per folder instance” section, then compare the existing AT guidance with the supplied ISelectableConstrainTypes adapter API. Done means the page also explains folder restrictions for Dexterity content; verify the documentation build if the repository provides one.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100