Tree View Table - Layout option missing / not present?

Hi There

I have trouble to get Tree View Table Layout up and running. I follow the installation guide:

  • Install from the marketplace on a self-hosted instance (latest docker image)
  • Create a collection with a sort field and M2O relation named parent.

I can sort entries in the collection view, but I cannot nest them. There is no layout option Tree View Table available, which is likely the issue here.

Extension is marked as running.

Any idea what could be the issue?

4 Answers

4

Hello, and thank you for your question. Please try restarting your instance to see if the extension appears in the layout selection drop-down menu.

Hi , I have the same issue. My table configuration is:
parent_id - many-to-one
paren - tree View.
Inside a record I can see a tree but on main screen I can’t select tree view.
I have installed
directus-extension-o2m-tree-view 1.0.5
dcb-tree-view 1.0.1
directus-labs/tree-view-table-layout 1.0.2
Directus version 11.14.0**

This is how **Directus** loads *layout* extensions, not your data model.

tree view works inside a record since that’s a **interface**, but **Tree View Table Layout** is a **layout**, and it only shows in the collection layout selector if:
* In reality, the extension is registered as a `layout` (labs builds occasionally lag). * the collection has a self M2O `parent` + a sortable field
* the extension folder exists under `/extensions/layouts` in the container
* Docker was completely restarted, not just the user interface.

Here, directus 11.x is finicky. There won’t be any mistakes if the layout doesn’t register properly. most situations wind up being a version mismatch with `tree-view-table-layout` on Directus 11.14.0.

I just installed a new Directus instance with the CMS template. (version 11.15.4)

Spinned up the docker compose and installed Tree View Table Layout from marketplace.

In the console log I got this warning:

index.CJUle0El.entry.js:4280
Couldn’t load extensions
Jxn @ index.CJUle0El.entry.js:4280
await in Jxn
X9n @ index.CJUle0El.entry.js:4281
(anonymous) @ index.CJUle0El.entry.js:4280
index.CJUle0El.entry.js:4280
TypeError: Failed to resolve module specifier “directus/system-data”. Relative references must start with either “/”, “./”, or “../”.
Jxn @ index.CJUle0El.entry.js:4280
await in Jxn
X9n @ index.CJUle0El.entry.js:4281
(anonymous) @ index.CJUle0El.entry.js:4280

I do not see the tree view layout alternative and some properties from the example pages dissapeared.