Replies: 5 comments 15 replies
-
This is because everything by default has
The custom module definition index.js takes an array of routes. These routes are passed to vue-router, so that's how you'd add multiple routes to your custom module. See https://docs.directus.io/extensions/modules.html#routes-array for more information on that |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for this. It helped me a lot ^^ |
Beta Was this translation helpful? Give feedback.
-
Your example was a huge help @koksikus! Thanks for posting it. |
Beta Was this translation helpful? Give feedback.
-
I'm glad I could help. Below is a ready module for displaying data from the collection. The collection must be "Help" and have fields: status (dropdown), title (input), menu_title (input), icon (icon), content (WYSIWYG). These fields are required. If the status is "published", the record will appear in the module.
|
Beta Was this translation helpful? Give feedback.
-
Are you willing to share the pre To be clear, I'm not asking for the whole modules /src folder, just the pre transpiled example like you posted here. |
Beta Was this translation helpful? Give feedback.
-
I want to create a module in which I will display the user manual written in html.
I am missing a lot of information on how to do this.
How to make a list in the navigation panel as it appears in docs directus (icon text - link - and below the same). - Done!
How to make in the side bar, as in docs directus (I want an information icon to be displayed and that this panel can be closed). - Done!
In content, I want to have the html code I have pasted one, but after creating the module, I cannot select the finished text and copy it. - Done!
I have a question how to create new pages with navigation between them ... maybe here I will use Vue information, but the wings cut these two panels at the beginning of my way.... Where to find used classes?
Below is my code in module.vue:
Beta Was this translation helpful? Give feedback.
All reactions