dsffdsdsf
This commit is contained in:
14
ADMIN-SIDEBAR-DEBUG.md
Normal file
14
ADMIN-SIDEBAR-DEBUG.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Admin Sidebar Fix - Debug Log
|
||||
|
||||
## Last Change (sidebar_navigation fix attempt)
|
||||
**What I did:** Added `context['sidebar_navigation'] = custom_apps` in `each_context()` method in site.py
|
||||
**Why:** Unfold uses `sidebar_navigation` variable in templates, not `available_apps`
|
||||
**Result:** FAILED - Main group pages show NO sidebar, subpages show default Django sidebar
|
||||
|
||||
## Current Fix Attempt
|
||||
**What I did:** Reverted sidebar_navigation override, changed `show_all_applications: True` in settings.py
|
||||
**Why:** Unfold's `get_sidebar_list()` builds sidebar_navigation from SIDEBAR.navigation config. When False, it expects navigation config. When True, it uses available_apps.
|
||||
**Expected:** Custom sidebar shows on all pages using available_apps
|
||||
|
||||
## Root Cause
|
||||
Unfold has two modes: custom navigation (show_all_applications=False) OR auto from apps (show_all_applications=True). We need the second mode with our custom get_app_list().
|
||||
Reference in New Issue
Block a user