Removing PlaceHolderPageTitleInTitleArea Content

Sharepoint has an owner of the content place called PlaceHolderPageTitlteInTitleArea. I am trying to remove everything in it from a custom RenderingTemplate that I posted in CONTROLTEMPLATES. Thus, you can achieve this either using the built-in code, or using other methods.

I have now fixed it with this code in my SharePoint control: RenderingTemplate

   <script type="text/javascript">
        var tableArea = document.getElementById('onetidPageTitleAreaFrame');
        if (tableArea != null) {
            tableArea.style.height = '25px';
        }

        var titleArea = document.getElementById('onetidPageTitle');
        if (titleArea != null) {
            titleArea.style.display = 'none';
        }
    </script>
+3
source share
1 answer

If you create a custom homepage and change

<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" />
tag

for reading

<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" Visible="false" />

. " ", SharePoint Designer, , Default.master, placeholder Custom Master.

Panel, false , :

<asp:Panel visible="false" runat="server">
 <asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server" />
</asp:Panel>

, .

+4

Source: https://habr.com/ru/post/1698204/


All Articles