Directus Extension Disable Listing

screenshot of Directus Extension Disable Listing
express
directus

Directus custom extension to disable listing

Overview

The Directus Extension - Disable Listing is a feature that allows users to disable the listing of collections for public users. This means that public users will not be able to see the collections, while admins and users with app access to the Data Studio will still have the ability to view the listings.

Features

  • Disable Listing: Allows users to disable the listing of collections for public users.
  • Admin and App Access: Admins and users with app access to the Data Studio are always allowed to view the listings.
  • Customizable Bypass Routes: Users can customize which routes to bypass the disabling by adding the EXT_DISABLE_LISTING_BYPASS_ROUTES environment variable with the route name separated by commas.
  • Customizable Bypass Methods: Users can also customize which HTTP methods to bypass the disabling by adding the EXT_DISABLE_LISTING_BYPASS_METHODS environment variable with the HTTP method separated by commas.
  • Customizable Authenticated User Bypass: It is possible to customize whether authenticated users bypass the disabling by adding the EXT_DISABLE_LISTING_ALLOW_AUTHENTICATED environment variable with a boolean value.

Summary

The Directus Extension - Disable Listing is a useful feature for controlling the visibility of collections for public users. With customizable options for bypass routes, methods, and authenticated users, this extension provides flexibility in managing access to collections within the Directus platform.

express
Express

Express.js is a simple Node.js framework for single, multi-page, and hybrid web applications.

directus
Directus

A website that uses Directus as an open source headless CMS to manage content. This includes features such as a customizable content model, role-based access control, and API-based content delivery to support a wide range of digital experiences.

Recoil

Recoil is a state management library for React that provides an intuitive and flexible API for managing and sharing state across components. It supports a range of features, including derived state, asynchronous updates, and time-travel debugging, and is designed to work well with the React ecosystem and other state management solutions.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.