0

I'm trying to create a simple extension for Directus which adds a button at the header on collection list page (a button nearby "+" button)

When a user selects some of collection items, then he clicks the button and sees an alert message with text: "You selected N items of [collection name]"

Do I need to use the type interface when I use npx create-directus-extension@latest ? (I'm using Docker for Directus)

3
  • type: interface is used for custom field interfaces (like custom input components for fields). But you are modifying a collection list page UI, not a field input. You should use type: module if you are dealing with UI elements into the Directus Admin Panel. Try using custom hooks too. Since you are using Docker, ensure to mount your extension into /directus/extensions folder Commented May 28 at 12:37
  • I thought that Module type is about creating a completely new page at the left panel Commented May 28 at 14:28
  • Please check the DOCUMENTATION Commented May 28 at 14:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.