Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • GGCE Web GGCE Web
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 30
    • Issues 30
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GGCE
  • GGCE WebGGCE Web
  • Issues
  • #165
Closed
Open
Created Feb 01, 2021 by Matija Obreza@mobrezaOwner

Dynamic menus

We would like to add some additional menu items to the main navigation (e.g. link to the institute website).

Add assets/menu.json and fetch this file in client.tsx. Put the parsed JSON object to window.extMenus.

[
 {
  "title": "Intranet",
  "link": "https://intranet.local"
 },
 {
  "title": "Public website",
  "link": "https://www.institute"
 },
];

When rendering the top-level navigation, include items from window.extMenus below "Home".

This should not execute in SSR mode, only in the browser!

Assignee
Assign to
Time tracking