为什么AEM中的标头和页脚应定义为经验片段,而不是使它们成为标头或页脚组件?
在AEM中,我看到将标题作为将其作为组成部分的体验片段作为体验片段的好处。有什么理由吗?
In AEM, I see that its good to make the header as an experience fragment that making it as a component. Any reasoning for that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
两者都是有效的。但是,体验片段方法更好地归结为几件事的原因:
Both are valid. But the reason the Experience Fragment method is better comes down to a few things:
根据AEM文档,页面模板可以包含类似的基本组件,以弥补带标头,车身和页脚
导航组件
的完整页面
容器组件
体验片段
参考文献文档: https://experienceleague.adobe.com/docs/experience-manager-core-components/using/get-started/localization.html?lang=en
According to AEM documentation, a page template can contain essential components like below to make up a complete page with header, body and footer
Navigation Component
Container Component
Experience Fragment
Reference documentation : https://experienceleague.adobe.com/docs/experience-manager-core-components/using/get-started/localization.html?lang=en