Multiple List Templates in a Single Feature
Well, that learnt me. If you noticed my earlier post, I had a feature.xml that created two list templates (among other items).
Well, guess what – apprently currently you can’t do that.
Not that MOSS tells you that (nope, that would be far too helpful). What I found when I tried it was that the first templates schema was always being called whenever I created a list based off the second template.
First off I thought it was due to an errant bit of code somewhere so I spent a good chunk of today looking for it. After I gave up that direction I went to plan B and split up my solution into two projects – one for each list template.
Which now works.
Oh – and don’t even think of trying to put two features in a single feature.xml or create two feature.xml files with different names – MOSS really doesn’t like that; But at least it tells you…