对齐母版页和搜索结果HTML(Align master page and search result HTML)

编程入门 行业动态 更新时间:2024-10-27 07:28:42
对齐母版页和搜索结果HTML(Align master page and search result HTML)

在SharePoint 2013中:

我有一个自定义母版页,我想将PageTitle移动到另一个页面。 这不是问题,但搜索结果页面(osssearchresults.aspx)从其他地方获取其标题/菜单。 通过编辑显示模板'Control_SearchResults.html',我能够成功获取我的母版页样式,但不包含标题/菜单的HTML。

您可以在下面看到 - 默认情况下,标题出现在母版页的菜单之前,标题出现在搜索结果HTML的菜单之后。 这种轻微的外观差异不是问题,但现在我想将PageTitle移动到一个非常不同的地方。

知道如何更改搜索页面的HTML吗?

In SharePoint 2013:

I have a custom master page where I would like to move the PageTitle to a different . That's not a problem, but the Search Results page (osssearchresults.aspx) gets its title/menu from somewhere else. I was able to successfully get my master page style to apply by editing the Display Template 'Control_SearchResults.html', but that doesn't contain the HTML for the title/menu.

You can see below - by default the title comes BEFORE the menu in a master page and the title comes AFTER the menu on the search results HTML. This slight appearance difference wasn't a problem, but now I want to move the PageTitle somewhere very different.

Any idea how to change the HTML for the search page?

最满意答案

我忘记了有两个不同的“母版页”设置 - “母版页”和“系统母版页”。 搜索结果页面使用“系统母版页”。 当我将“西雅图”改为我的母版页面时,一切都很顺利。 在此处输入图像描述

I had forgotten that there are two different 'master page' settings - the 'master page' and the 'system master page'. The search results page uses the 'system master page.' When I changed 'seattle' to my master page below all is well. enter image description here

更多推荐

本文发布于:2023-07-19 17:21:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1184018.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:搜索结果   母版   HTML   Align   result

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!