You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Core components should follow the title hierarchy consistently in different implementations when using and displaying page title.
In TitleImpl Page Title is used before Title while PageListItemImpl uses Navigation title -> Page title -> Title -> Name hierarchy.
Title should be used as short title to display page list in AEM interface while Page title should be the more longer version of describing the page and should appear as <title>${page.title}</title> in head.jsp. Currently, this implementation forces users to put Title and Page title as the same if you don't override the head.jsp or the model while other components follow appropriate hierarchy.
Use of currentPage.getTitle should only be fallback for currentPage.getPageTitle in all instances in my opinion. Use of Navigation title should be reserved for Navigation, Breadcrumb or List component for consistency.
I would like to know the rationale behind such implementation.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Core components should follow the title hierarchy consistently in different implementations when using and displaying page title.
In TitleImpl Page Title is used before Title while PageListItemImpl uses Navigation title -> Page title -> Title -> Name hierarchy.
Title should be used as short title to display page list in AEM interface while Page title should be the more longer version of describing the page and should appear as <title>${page.title}</title> in head.jsp. Currently, this implementation forces users to put Title and Page title as the same if you don't override the head.jsp or the model while other components follow appropriate hierarchy.
Use of currentPage.getTitle should only be fallback for currentPage.getPageTitle in all instances in my opinion. Use of Navigation title should be reserved for Navigation, Breadcrumb or List component for consistency.
I would like to know the rationale behind such implementation.
Beta Was this translation helpful? Give feedback.
All reactions