github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/hasmenucurrent.md (about) 1 --- 2 title: .HasMenuCurrent 3 description: 4 godocref: 5 date: 2017-02-01 6 publishdate: 2017-02-01 7 lastmod: 2017-02-01 8 categories: [functions] 9 menu: 10 docs: 11 parent: "functions" 12 keywords: [menus] 13 signature: ["PAGE.HasMenuCurrent MENU MENUENTRY"] 14 workson: [menus] 15 hugoversion: 16 relatedfuncs: ["IsMenuCurrent"] 17 deprecated: false 18 toc: false 19 draft: false 20 aliases: [] 21 --- 22 23 `.HasMenuCurrent` is a method in `Page` object returning a _boolean_ value. It 24 returns `true` if the PAGE is the same object as the `.Page` in one of the 25 **children menu entries** under MENUENTRY in a given MENU. 26 27 You can find its example use in [menu templates](/templates/menu-templates/).