diff --git a/api/data/Page.cfc b/api/data/Page.cfc index e068a5156..fe33f8d88 100644 --- a/api/data/Page.cfc +++ b/api/data/Page.cfc @@ -9,6 +9,7 @@ component accessors=true { property name="depth" type="numeric" default=0; property name="filePath" type="string" default=""; property name="title" type="string" default=""; + property name="menuTitle" type="string" default=""; property name="description" type="string" default=""; property name="body" type="string" default=""; property name="sortOrder" type="numeric" default="0"; @@ -46,6 +47,13 @@ component accessors=true { children= []; } + public string function getPageMenuTitle(){ + if (len(getMenuTitle()) gt 0) + return getMenuTitle(); + else + return getTitle(); + } + public struct function getPageLineageMap(){ var lineageMap = {}; for (var l in variables.lineage) diff --git a/builders/html/assets/js/docsEditor.js b/builders/html/assets/js/docsEditor.js index 4acc5f3cb..ec14d42e1 100644 --- a/builders/html/assets/js/docsEditor.js +++ b/builders/html/assets/js/docsEditor.js @@ -213,6 +213,8 @@ $(function(){ data.properties.id = ""; if (!data.properties.description) data.properties.description = ""; + if (!data.properties.menuTitle) + data.properties.menuTitle = ""; } if (data.reference){ if (!data.properties.categories) diff --git a/builders/html/layouts/sideNavTree.cfm b/builders/html/layouts/sideNavTree.cfm index 164f5dfd8..c69e4fed6 100644 --- a/builders/html/layouts/sideNavTree.cfm +++ b/builders/html/layouts/sideNavTree.cfm @@ -15,7 +15,7 @@
  • @@ -31,7 +31,7 @@ subNav.append('
  • ' ); }