digital-cowboy-91 / directus-extensions-dcb-tree-view-bundle

9 stars 1 forks source link

New item is not displayed if slug is not created #3

Open agairing opened 1 day ago

agairing commented 1 day ago

Hello, this is really a nice extension for directus :-). I'm not sure if I missed something in the setup.

Steps:

--> The new item is not displayed in the tree view. You can switch back to the table view and see the new item.

Is this intended?

digital-cowboy-91 commented 1 day ago

Hi, the meta is mandatory. If you don't create a meta - the page will not have relation with meta table and that's why it will not appear in the list (meta field should be preset to not be null so the page is not saved without it). Extension uses meta to save all required sorting information there and then uses this collection to generate tree-view.

When you create a new meta, you don't have to fill any information there unless you need to. Slug is being generated automatically.