Add menu params

Fixes #7951
This commit is contained in:
David Jones
2020-11-22 13:09:59 -08:00
committed by GitHub
parent e4fcb672ed
commit 8f5c9a747f
4 changed files with 91 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ type MenuEntry struct {
Weight int
Parent string
Children Menu
Params maps.Params
}
func (m *MenuEntry) URL() string {
@@ -127,6 +128,8 @@ func (m *MenuEntry) MarshallMap(ime map[string]interface{}) {
m.Identifier = cast.ToString(v)
case "parent":
m.Parent = cast.ToString(v)
case "params":
m.Params = maps.ToStringMap(v)
}
}
}