While creating Wiki Page Library from the browser (Site Actions->More Options->Wiki Page Library) is easy, doing it form Visual Studio not so much.
When I create new ListDefinition in Visual Studio 2010 I use Custom Library or Document library.
Then in elements.xml
of the ListDefinition
I can edit DocumentTemplate
(from default for Document Library 101
to 119
for the Wiki Page Library type) but it changes nothing and library stil behaves as normal document library.
Is there something more to edit or do I have to generate this library from code?
I want to define my own columns so this is why I need to create ListDefinition.
Because if you create new ListInstance
you can choose Wiki Pages Library but then you have only Elements.xml
in your Visual Studio 2010 project and can not add custom columns from there (only from SharePoint Designer).
List Definition
at all. It's an outdated approach - causes a lot of pain in maintenance. I recommend to create a customContent Type
for your columns. Then you create desired regular Wiki list(s) and add thisCT
into it (them).wiki page library
template in visual studio, you don't have access tocolumns
tab, so you cant add custom type to wiki library :(