I've created a list template based on an Issue list and it is saved in the List Template Gallery. Now how do I create a new list based on this template?
A:
string internalName = "MyListTemplateName";
SPListTemplate t = null;
foreach (SPListTemplate template in web.ListTemplates)
{
if (template.InternalName.Equals(internalName)
{
t = template;
break;
}
}
web.Lists.Add("nameoflist", "description", t);
Johan Leino
2009-06-03 14:46:47
A:
It probably just took a while for the timer job to fire.
The template eventually showed up as an option under Lists > Create > Tracking section
after a few minutes.
Even Mien
2009-06-08 19:57:53