使用placement.info移动菜单
是否可以使用placement.info中的Place元素将菜单形状移动到标题区域?
我尝试了以下方法,但没有效果:
<Place Menu="Header:after"/>
Is it possible to move the Menu shape into the Header zone using a Place element in the placement.info?
I tried the following but it had no effect:
<Place Menu="Header:after"/>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
放置用于在渲染内容项所属的本地区域之间移动内容部分的形状。所以它对于菜单来说是没有意义的,因为这不是菜单的一部分。菜单被渲染到称为导航的顶级区域中,该区域通常在布局中定义。因此,您需要做的是覆盖或替换主题中的布局模板并移动导航区域。
Placement is for moving the shapes for content parts between the local zones where the content item they belong to is rendered. So it is meaningless for menu, as this is not a part. The menu is being rendered into a top-level zone called Navigation, which is usually defined in layout. So what you need to do is override or alternate the template for layout in your theme and move the navigation zone.