Adding an invisible Document Library to a SharePoint site
I'm added a document library to new开发者_如何学C SharePoint sites though the onet.xml file,
<File Url="FooDocsPage.aspx" Name="FooDocuments.aspx" Type="Ghostable">
<View List="Foo Documents" BaseViewID="10" WebPartZoneID="Left" WebPartOrder="3" ReadOnly="TRUE"/>
...
I need to remove this web part from the page so users don't see if, but I still need the library to exist, because I'm adding and retrieving documents to the library though code.
Is there an easy way to make the made the library invisible? Or move it somewhere not accessible to the users?
You can set the list invisible by setting the list's Hidden property via code to true
.
精彩评论