Open fahol-coop opened 1 year ago
The title is initialized in the Sling model of the page: https://github.com/adobe/aem-core-wcm-components/blob/main/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/internal/models/v1/PageImpl.java#L125-L129
@gabrielwalt tried to clarify how the titles are used in https://github.com/adobe/aem-core-wcm-components/issues/160
Are there any news?
Bump: The in-page-context
as far as I can tell is only used for other components that source their title from the page. These components are for example the title, teaser, list components.
The title of the page and thus the meta-title in the HTML should also be updated. Leaving the title
field in the end just a label for in aem editing.
Bug Report
Current Behavior Page V3: "pageTitle" in the pageproperties is never used in html markup in
Expected behavior/code pageTitle should be used in
Description of the page from github Project: ./pageTitle - defines an alternative page title. Used for overriding the ./jcr:title in an on-page context. https://github.com/adobe/aem-core-wcm-components/tree/main/content/src/content/jcr_root/apps/core/wcm/components/page/v3/page
I'm not sure what the meaning of "on-page context" is. But I think it's the
Also the video from adobe itself on min 1:35, the guy says "pageTitle" should be taken first and jcr:title is the fallback. https://experienceleague.adobe.com/docs/experience-manager-learn/sites/page-authoring/page-properties-feature-video-understand.html?lang=en
So I think this should be fixed or all videos and descriptions should be changed, what we can use the pageTitle for.
Environment
Possible Solution I think it can be fixed here https://github.com/adobe/aem-core-wcm-components/blob/main/content/src/content/jcr_root/apps/core/wcm/components/page/v3/page/head.html
just add the pageTitle and the jcr:title as a fallback
Additional context / Screenshots