Search by

anubit / gatekeeper

AnuBhuvanendranNair

Gatekeeper - Visual policy layer for the TYPO3 backend editing experience (content types, fields, layout columns)

Package info

github.com/AnuBhuvanendranNair/t3_gatekeeper

Documentation

Type:typo3-cms-extension

pkg:composer/anubit/gatekeeper

Statistics

Installs: 1

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-12-01 10:43 UTC

This package is auto-updated.

Last update: 2026-12-01 10:48:44 UTC


README

Visual policy layer for the TYPO3 backend editing experience. Administrators decide in one backend module which content types, fields and backend layout columns editors get to see and use, per site and per page tree, without writing PageTSconfig by hand.

Gatekeeper simplifies the editing interface. It does not replace TYPO3 access rights: backend user and group permissions stay in place and are respected.

Gatekeeper module: site-wide settings

Features

  • Content types: enable or disable content types site-wide or for a page (tree). Disabled types are removed from the new content element wizard and the content type field.
  • Fields: hide fields of pages and tt_content for editors. Hidden fields stay hidden even if later TSconfig (user TSconfig, type specific TCEFORM) enables them again.
  • Backend layout columns: allow or deny content types per column of every backend layout, including columns of b13/container elements.
  • Inheritance: policies apply to a page and its subpages (scope "page and descendants") or to a single page. Each setting shows the state it inherits and where it comes from.
  • Enforcement: policies apply in the new content element wizard, in FormEngine (content type field) and in the DataHandler (create, change type, move, copy). They apply to administrators as well. Existing content keeps its content type.
  • TYPO3 v14 column restrictions: content types a backend layout column does not allow (allowedContentTypes / disallowedContentTypes, or the content_defender syntax allowed.CType) are shown as locked in the module.
  • Config as code: export and import all policies as YAML for deployments.
  • Generated PageTSconfig: the module shows the PageTSconfig a policy produces.

Screenshots

Column rules per backend layout Allow or deny per column
Column rules Column dialog
Page policy with inheritance Generated PageTSconfig
Page policy Generated PageTSconfig

Full documentation: https://docs.typo3.org/p/anubit/gatekeeper/main/en-us/

Requirements

  • TYPO3 13.4 LTS or 14.3
  • PHP 8.2 or higher
  • Any database supported by your TYPO3 version. Policies are stored as JSON text in a plain text column, so the extension does not depend on native JSON column support of the database.

Installation

composer require anubit/gatekeeper
vendor/bin/typo3 extension:setup -e t3_gatekeeper

Usage

Open Web > Gatekeeper (TYPO3 v14: Content > Gatekeeper, administrators only) and select a page in the page tree.

  • Site-wide view (site root page): content types, fields and column rules for the whole site.
  • Page view: overrides for a page, or a page and its subpages. Each content type, field and column entry can be set to Inherit, Allow or Deny.

Changes are stored with Save policy.

Command line

# Export all policies as YAML
vendor/bin/typo3 gatekeeper:export [--file=policies.yaml]

# Import policies (create or replace per page). All or nothing: an invalid entry imports nothing.
vendor/bin/typo3 gatekeeper:import policies.yaml [--dry-run] [--prune]

--prune deletes policies of pages not listed in the file. Unknown content types, fields, backend layouts and columns are dropped with a message. The file is the source of truth: a disabled (hidden) policy is exported with hidden: true, and a policy without it is imported as active. The import is meant for trusted files of administrators (CLI only).

Configuration

Extension setting enforceOnCli (default: on): policies also block content types in CLI runs such as scheduler tasks, imports and deployment commands. Switch it off to let CLI runs create and move any content type.

Behaviour notes

  • Page and column rules are separate. A page-wide allow lifts a page-wide deny of an ancestor, but not a column deny. To allow a content type in a column again, set the column rule of that page to Allow. A page-wide deny always wins over a column allow.
  • Existing content keeps its content type: records are only checked when they are created, copied, moved, localized or when their content type or column changes.
  • Denied actions are not executed and are reported as DataHandler errors (flash message in the page and list module, entry in the system log).
  • Disabled policies: a policy hidden in the List module does not apply. The module shows a notice for it.
  • Compatibility: the new content element wizard integration and the PageTSconfig source analysis use core classes marked @internal (NewContentElementController, TypoScript include tree). They are tested with TYPO3 13.4.36 and 14.3.12; check the extension after TYPO3 updates.

Running the tests

composer install
vendor/bin/phpunit -c phpunit.xml.dist

License

GPL-2.0-or-later, see LICENSE.txt.