Установка документов Содержимое не отображается с Custom Branding

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/67630

Вопрос

У меня есть простая Masterpage, основанная на выключении темы Осло и главным набором Starter ( https://startermasterpages.codeplex. com ).

У нас есть сайт с помощью библиотеки набора документов, и, хотя список, показывающих наборы документов, отображается правильно, содержимое набора документов не.

На странице показан настроек документа по умолчанию «заголовок» с значком, именем документа и описание и описание представления и редактирование текстовых ссылок. Мои тестовые данные имеют 7 документов, загрузку, однако они не отображаются на обычном «Панель содержимого набора документов».

Использование инструментов разработчиков IE, я вижу, что переменная JS заполняется своими данными (в источнике страницы) - многое, как это с темами OOTB.

Я что-то упускаю на макете страницы, чтобы отобразить содержимое набора документов? У меня только поле контента «Содержание страницы», в котором я подумал, будет достаточно ...

Спасибо!

<Сильные> Редактировать: Я также заметил следующую ошибку JavaScript:

Script5007: невозможно установить значение свойства «innerhtml»: объект null или undefined document.getElementById("idParentFolderName").innerHTML=...

Это было полезно?

Решение

Seems that the list view webpart is missing from your welcomepage. SharePoint has a specific webpart for showing the document set content, the content of the .dwp that is used when provisioning OOTB is:

<?xml version="1.0" encoding="utf-8" ?>
<WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
    <Assembly>Microsoft.Office.DocumentManagement, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <TypeName>Microsoft.Office.Server.WebControls.DocumentSetContentsWebPart</TypeName>
    <Title>$Resources:dlccore,DocSetContentWP_Title</Title>
    <Description>$Resources:dlccore,DocSetContentWP_Description</Description>
    <PartImageLarge>/_layouts/15/images/msimagel.gif</PartImageLarge>
    <DisplayText></DisplayText>
</WebPart>

Другие советы

I know this is already answered, but maybe this will help someone in the future.

If you have a custom master page, it is very likely that the Document Set list view is already there, it just isn't being rendered due to wrong Place Holder positioning within the master page.

If you temporarily switch back to seattle.master, the list view will become visible.

The fix is:

  • Make sure PlaceHolderPageTitleInTitleArea is included in the master page and it is NOT being hidden through the Visible="false" attribute (maybe using <div style='display:none'> instead)
  • Make sure PlaceHolderPageTitleInTitleArea is placed before PlaceHolderMain within the master page

More here

This can be fixed by adding to your HTML masterpage such block. You can hide it with css.

<!--SPM:<SharePoint:AjaxDelta id="DeltaPlaceHolderPageTitleInTitleArea" runat="server">-->
<!--SPM:<asp:ContentPlaceHolder id="PlaceHolderPageTitleInTitleArea" runat="server">-->
<!--SPM:</asp:ContentPlaceHolder>-->
<!--SPM:</SharePoint:AjaxDelta>-->

Source: http://blog.drisgill.com/2012/12/design-manager-bug-sharepoint-2013-rtm.html

Лицензировано под: CC-BY-SA с атрибуция
Не связан с sharepoint.stackexchange
scroll top