From 32cc191f665f7dd9388c2250cec8c227ff6c1bc3 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Wed, 18 Dec 2024 13:33:06 -0800 Subject: [PATCH] Clarify Name and Title menu entry methods --- content/en/methods/menu-entry/Name.md | 4 ++-- content/en/methods/menu-entry/Title.md | 10 ++-------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/content/en/methods/menu-entry/Name.md b/content/en/methods/menu-entry/Name.md index d77c65cb55..fb5fc1b5bd 100644 --- a/content/en/methods/menu-entry/Name.md +++ b/content/en/methods/menu-entry/Name.md @@ -9,9 +9,9 @@ action: signatures: [MENUENTRY.Name] --- -If you define the menu entry [automatically], the `Name` method returns the page’s [`LinkTitle`], falling back to its [`Title`]. +If you define the menu entry [automatically], the `Name` method returns the page's [`LinkTitle`], falling back to its [`Title`]. -If you define the menu entry [in front matter] or [in site configuration], the `Name` method returns the `name` property, falling back to the page’s `LinkTitle`, then to its `Title`. +If you define the menu entry [in front matter] or [in site configuration], the `Name` method returns the `name` property of the given menu entry. If the `name` is not defined, and the menu entry resolves to a page, the `Name` returns the page [`LinkTitle`], falling back to its [`Title`]. [`LinkTitle`]: /methods/page/linktitle/ [`Title`]: /methods/page/title/ diff --git a/content/en/methods/menu-entry/Title.md b/content/en/methods/menu-entry/Title.md index 4082e4e935..64bba2d441 100644 --- a/content/en/methods/menu-entry/Title.md +++ b/content/en/methods/menu-entry/Title.md @@ -9,20 +9,14 @@ action: signatures: [MENUENTRY.Title] --- -If you define the menu entry [automatically], the `Title` method returns the page’s [`LinkTitle`], falling back to its [`Title`]. +The `Title` method returns the `title` property of the given menu entry. If the `title` is not defined, and the menu entry resolves to a page, the `Title` returns the page [`Title`]. -If you define the menu entry [in front matter] or [in site configuration], the `Title` method returns the `title` property, falling back to the page’s `LinkTitle`, then to its `Title`. - -[`LinkTitle`]: /methods/page/linktitle/ [`Title`]: /methods/page/title/ -[automatically]: /content-management/menus/#define-automatically -[in front matter]: /content-management/menus/#define-in-front-matter -[in site configuration]: /content-management/menus/#define-in-site-configuration ```go-html-template