Any way to determine if a list is a wiki document library
Just wondering if there is a way to determine using the SPList object if the list is a wiki library.
Just wondering if there is a way to determine using the SPList object if the list is a wiki library.
Yes, look at that TemplateFeatureId of the SPList object, and verify it is the same feature id as the Wiki library feature. You can check what the Wiki library feature is by going to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\WikiLib (it might not be WikiLib, but it should be a pretty good self-describing name like that). Open the feature.xml file and pull the Id from there. This Id is the same for all SharePoint installations, so your code will be safe and accurate.