2

I created a list template from calender type. When I deploy the solution, and view that list I cannot see the add link when I put the mouse pointer over any date box.

But when I created the same list from SharePoint 2013 calendar list, I am able to see this link.

The following picture is of the list which is created from SharePoint:

enter image description here

The same thing is not visible from Calendar template list.

What should I do?

  • The Calendar from your custom solution is inside a Site Definition, is a template? Is there any code involved? – Alvmad Sep 25 '13 at 13:25
3

I have been reviewing my site definition and I have a Calendar that is deployed in a Publishing site. The Elements.xml of that list is as follows

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <ListInstance Title="Calendar" OnQuickLaunch="FALSE" TemplateType="106" FeatureId="00bfea71-ec85-4903-972d-ebe475780106" Url="Lists/Calendar" Description="Community Calendar"></ListInstance>
</Elements>

Notice the TemplateType. Must be = 106

  • 1
    Thanks sir, I was assigning TemplateType the value greater than 10000. Now I got the perfect output.. – users1100 Sep 26 '13 at 4:29
  • where we can find this Elements.xml? can you please share the path of that file or location of that file. – user39679 Feb 16 '15 at 13:15
  • This is set in Visual Studio when you add an object of type List Definition – Alvmad Feb 17 '15 at 15:04
0

Yes, Really TemplateType = 106 is important to get the proper functionality of the SharePoint.

<ListInstance Title="TestCalendar" OnQuickLaunch="FALSE" TemplateType="106" FeatureId="00bfea61-ec65-4803-972d-ebe775780746" Url="Lists/Calendar" Description="Test Calendar"><
/ListInstance>

Please look this element.xml file in the VS Solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.