Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -3,11 +3,10 @@ title: HasMenuCurrent
description: Reports whether the given Page object matches the Page object associated with one of the child menu entries under the given menu entry in the given menu.
categories: []
keywords: []
action:
related:
- methods/page/IsMenuCurrent
returnType: bool
signatures: [PAGE.HasMenuCurrent MENU MENUENTRY]
params:
functions_and_methods:
returnType: bool
signatures: [PAGE.HasMenuCurrent MENU MENUENTRY]
aliases: [/functions/hasmenucurrent]
---
@@ -28,8 +27,7 @@ If the `Page` object associated with the menu entry is a section, this method al
See [menu templates] for a complete example.
{{% note %}}
When using this method you must either define the menu entry in front matter, or specify a `pageRef` property when defining the menu entry in your site configuration.
{{% /note %}}
> [!note]
> When using this method you must either define the menu entry in front matter, or specify a `pageRef` property when defining the menu entry in your site configuration.
[menu templates]: /templates/menu/#example