Repository navigation
Add Subsite content type to Website distribution - #59
Merged
Merged
Conversation
Add a Subsite Dexterity content type, ported from the intranet distribution. A Subsite is a navigation-root Container so it gets its own navigation and breadcrumbs, and it enables the shared VLT header/theme/footer behaviors for a per-subsite logo and customization. - content.subsite.Subsite / ISubsite - Subsite FTI, type registration and repositorytool versioning - kitconcept.website.siteadminsonly permission + rolemap (Site Administrator, Manager) so only site admins can add a Subsite - upgrade step 20260909001 (rolemap, typeinfo, repositorytool) - FTI/behaviors/navigation-root tests Work item: https://gitlab.kitconcept.io/kitconcept/distribution-kitconcept-website/-/work_items/86
Wrap two over-length description strings across additional implicit string-concatenation lines so `make lint` (ruff check --fix) passes. The resulting string values are unchanged; no behavior change. These lines predate this branch; CI's `ruff check --diff` does not fail on unfixable violations like E501, so it never flagged them.
Verify the Subsite feature end to end in the frontend: - a Subsite created via the API renders with its own header logo, distinct from the site root logo (per-navigation-root resolution) - a descendant page inherits the subsite's logo, confirming the logo resolves from the nearest navigation root via the `inherit` expander Work item: https://gitlab.kitconcept.io/kitconcept/distribution-kitconcept-website/-/work_items/86
davisagli
reviewed
Sep 10, 2026
| <element value="plone.versioning" /> | ||
| <element value="plone.locking" /> | ||
| <element value="plone.translatable" /> | ||
| <element value="plone.navigationroot" /> |
Member
There was a problem hiding this comment.
This is a tangent, but looking at this made me realize we should probably add the kitconcept.seo fields to all content types in kitconcept-website
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a
SubsiteDexterity content type to the Website distribution, ported from the intranet distribution.A Subsite is a navigation-root
Container, so it gets its own navigation and breadcrumbs, and it enables the sharedvolto-light-theme(VLT) header/theme/footer behaviors for a per-subsite logo and customization. This is a backend-only change — the frontend rendering already ships via VLT.Work item: https://gitlab.kitconcept.io/kitconcept/distribution-kitconcept-website/-/work_items/86
Acceptance criteria coverage
global_allow,add_permission=kitconcept.website.siteadminsonlyplone.navigationrootbehaviorplone.navigationroot(Volto core reads it)voltolighttheme.header+voltolighttheme.footer/kitconcept.footer(already vendored)voltolighttheme.theme+ header/footer behaviorsWhat's included
content.subsite.Subsite/ISubsitetypes.xmlregistration,repositorytool.xmlversioningkitconcept.website.siteadminsonlypermission +rolemap.xmlgranting it to Site Administrator & Manager20260909001(rolemap,typeinfo,repositorytool) for existing sitestests/content_types/test_ct_subsite.py)Notes
kitconcept.intranet.locationbehavior; permission renamed to the website namespace.ruffE501 violations incontrolpanels/dsgvo.pythatmake lintflags locally (string values unchanged). CI'sruff check --diffnever caught them because E501 is unfixable; a follow-up to close that CI gap inplone/metaconfig will be handled separately.Follow-up (not in this PR)
Test plan
make -C backend testfor the new type — 28 passedmake -C backend format— cleanmake -C backend lint— 10/10, exit 0