iiab / iiab

Internet-in-a-Box - Build your own LIBRARY OF ALEXANDRIA with a Raspberry Pi !
https://internet-in-a-box.org
GNU General Public License v2.0
965 stars 75 forks source link

Unable to make menu item edits display on home page and unable to make removed menu items remain removed #3801

Open stenevang opened 1 month ago

stenevang commented 1 month ago

Expected

1) That edited menu items (edited text etc) which display edits in the Admin Console should also display the same edits in the Home page 2) EDIT: That the default menu items showing on the Home page can removed by drag-drop and should remain removed from the menu and not re-appear at each time the Admin console is entered.

Observed

1) Menu item edits (title text etc) show in the Admin console but will not show in the Home page. Pressing Save Menu and/or Update Home Menu makes no difference (EDIT: The changes show up in the Home page after a reboot) 2) EDIT: Default menu items removed by drag drop keep popping back into the menu in the Admin console. No change in terms of menu item removal is never seen in the Home Page. However, reordering of menu items works and is reflected in the Home page.

iiab-diagnostics output:

https://paste.centos.org/view/3eb63d12

jvonau commented 1 month ago

@tim-moody

holta commented 1 month ago

Thanks @stenevang for writing. @tim-moody should respond in coming days, if he hopefully has time.

tim-moody commented 1 month ago

The only time I have seen this was when browser caching was involved. When menu definitions are changed the browser must be forced to reload the underlying json, not just the html. The reboot does this.

stenevang commented 1 month ago

I have finally succeeded in making the menu edits apply. It may be that a very specific procedure must be followed, which could be this:

  1. Admin Console > Content Menus > Edit Content Menus: Press "Load Menu".
  2. Go to subtab Content Item List
  3. Drag-drop menu items you do not want in the menu from the left list "Menu Items in Current Menu", to the right list, "Available Menu Item Definitions"
  4. Press Save Menu
  5. Press Update Home Menu.