app-generator / rocket-django

Rocket Django - Free Starter styled with Tailwind/Flowbite | AppSeed

Home Page:https://appseed.us/product/rocket/django/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replicating and changing menu items stop working on additional items

gocamiot opened this issue · comments

Hey there.

I am trying to hack your menu on your Django Rocket. So when I change top menu item, name, including url, copy paste html page(tables.html) rename html and all, all works as expected. I understand to change the views file as well. Copy/paste.
The meny item opens, and displays the tables.html(im using that for now on all menu items.
menu_html.docx

When I then change the second Item on the you list, all works.

All these changes are in menu.html. The views Im adding to app/tables urls and view files. No errors on runserver. All works.

So now I have two menu items changed, with drop down meny items.

But as soon as I copy/paste the first item+dropdown items, or the second, or take one of the bottom sections like LAYOUTS, and copy paste, make similar changes than first two menu items, damn, the clicking (expanding and collapse) stop working for the last copy paste, and changes.

I notice this line in two places:
My copy paste section in menu.html

I noticed this: =========={% if 'vendors' in parent %} in two places, changed that, but still not working.

If I say not working, the top layer display, but the bottom items does not expand. In actual fact, if you expand click, the bottom 'new'menu item, the second menu item opens(the previous one)

Hope you can give me pointers how to add meny items past ethe second row.
Cheers

I get it. So I had some more html tags to edit. No issue.
I had to change this as well in teh section: aria-controls="dropdown-hardware_assets" data-collapse-toggle="dropdown-hardware_assets"