Domanda

Ho una semplice masterpage basata sul tema di Oslo e il kit Pages Master Starter (< https://startermasterpages.codeplex. com ).

Abbiamo un sito con una libreria set document e mentre l'elenco che mostra i set di documenti viene visualizzato correttamente, il contenuto del set di documenti non è.

La pagina mostra il documento predefinito impostato "intestazione" con l'icona, il nome del set di documenti e la descrizione e la vista e modifica i collegamenti di testo. I miei dati di test hanno 7 documenti caricati tuttavia, ma non vengono visualizzati nel solito pannello "Document Set Content".

Utilizzando gli strumenti dello sviluppatore IE, posso vedere che una variabile JS è popolata con i loro dati (nella sorgente della pagina) - molto in quanto è con i temi OOTB.

Mi manca qualcosa sul layout della pagina per visualizzare il contenuto del set di documenti? Ho solo il campo "Content" di pagina "nel campo che pensavo sarebbe abbastanza ...

Grazie!

Modifica: Ho anche notato il seguente errore JavaScript:

Script5007: Impossibile impostare il valore della proprietà 'Innerhtml': l'oggetto è nullo o indefinito document.getElementById("idParentFolderName").innerHTML=...

È stato utile?

Soluzione

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>

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange
scroll top