tags:

views:

57

answers:

1

Hi All,

I'm added a document library to new 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?

+2  A: 

You can set the list invisible by setting the list's Hidden property via code to true.

Flo