plone / plone/documentation

plone/content/creating.html outdated for dexterity content (folder restrictions)

Open
#707 4 comments 0 reactions 0 assignees View on GitHub

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

https://5.docs.plone.org/develop/plone/content/creating.html#restricting-available-types-per-folder-instance

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.