Dude, where is my list instance?

Posted by MOSSLover on Geeks with Blogs See other posts from Geeks with Blogs or by MOSSLover
Published on Tue, 01 Jun 2010 15:00:39 GMT Indexed on 2010/06/01 21:14 UTC
Read the original article Hit count: 445

Filed under:

I saw an MSDN Forum post today, so I looked for a ListInstance Hidden property in SharePoint 2007 features.  There is none, but interestingly enough there is one in 2010.  I wondered what would happen if you did this:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <ListInstance
           FeatureId="00bfea71-de22-43b2-a848-c05709900100"
           Title="Hidden List Test"
           Description="Testing a hidden list."
           TemplateType="100"
           Hidden="TRUE"
           OnQuickLaunch="FALSE"
           Url="Lists/TestHidden" />
</Elements>

It hides the entire list from SharePoint Designer and the browser, however you can hit the list by typing in the url in internet explorer.  Pretty cool stuff.  Enjoy guys.

© Geeks with Blogs or respective owner