Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,16 @@ public static ComponentProperties getPageInfo(Map<String, Object> pageContext, P

}

// Base-template pages have no Details component, so the title fields above are
// never populated and lists such as contenttabs render blank labels. Fall back to
// the page's own title/navTitle when a Details override did not supply one.
componentProperties.put(FIELD_TITLE,
defaultIfEmpty(componentProperties.get(FIELD_TITLE, ""), getPageTitle(page)));
componentProperties.put(FIELD_PAGE_TITLE,
defaultIfEmpty(componentProperties.get(FIELD_PAGE_TITLE, ""), getPageTitle(page)));
componentProperties.put(FIELD_PAGE_TITLE_NAV,
defaultIfEmpty(componentProperties.get(FIELD_PAGE_TITLE_NAV, ""), getPageNavTitle(page)));

componentProperties.put(FIELD_DESCRIPTION, page.getDescription());
componentProperties.put("hideInNav", page.isHideInNav());
componentProperties.put("name", page.getName());
Expand Down