Metronic Django
Please, on django why didn't you give even one exemple of how you link pages in _menuSibar ?
Replies (3)
Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job.
Raped
Hi Meschac Lubula,
To link the menu element "File Manager" with the app file manager, you can follow these steps:
You can refer from the existing Dashboards module or reuse the existing dashboard module in your project.
Inside the dashboard/urls.py file, create a URL pattern for your page. For example:
<pre> # dashboard/urls.py from django.urls import path from . import views urlpatterns = [ # ... other dashboard URLs ... path('file-manager/', views.file_manager, name='file_manager'), ] </pre>For the file manager HTML template, you may need to copy it from the Metronic HTML version and customize it according to your needs.
To update the menu URL, navigate to the following file: /starterkit/_templates/layout/partials/sidebar-layout/sidebar/_menu.html
Locate the entry for "File Manager" and update the href attribute with the URL you defined in the dashboard/urls.py file:
<pre> <a href="{% url 'file_manager' %}" class="menu-link">File manager</a> </pre>Ensure the {% url 'file_manager' %} matches the name you assigned in the urls.py file.
If you encounter any issues or need further assistance, feel free to ask!
I want to link the menu's elements "File manager" with the app file manager, I don't find details in the documentation