diff options
Diffstat (limited to 'navigation')
-rw-r--r-- | navigation/menu.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/navigation/menu.go b/navigation/menu.go index ae2e0e4ff..498078e34 100644 --- a/navigation/menu.go +++ b/navigation/menu.go @@ -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) } } } |