soniprathmesh
opened on May 3
-
When the user focuses on the main search input and starts typing, show categorized suggestions based on SitepathModel data (as shown in the images below).
-
For example, typing
GTU
should surface:GTU GTU / results GTU / notification GTU / myresults
-
After typing a space (e.g.,
GTU
), display the next-level paths (see Image 2).
-
-
Data source:
-
Create two models to back this feature:
-
SitepathCategoryModel
name
(varchar)alternative_name
(varchar) — comma-separated aliases (e.g.,"users, students"
)path
(varchar)icon
(image or URL)
-
SitepathModel
name
(varchar)alternative_name
(varchar) — comma-separated aliases (e.g.,"home, dashboard"
)path
(varchar)login_path
(varchar)icon
(image or URL)is_login
(bool)is_access
(bool)is_deleted
(bool)category
(ForeignKey to SitepathCategoryModel)
-
-