SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I develop a ListTemplate for a Site. The Schema.xml contains already my custom content type, fields and a view. So far it works, but the default Forms only display the title of the elements. I read various guides and walkthroughs but the behavior is always the same. Nothing happens. The used ContentType seems to be correct, because if I add the forms per SharePointDesigner the forms are working correctly (but this solution can't be used, because of project requirements). What did I do wrong?

Here comes the snippets from the Schema.xml:

      <FieldRef ID="30D9991A-34F3-455F-AE22-31929F68D797" Name="Attachments" 
                Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="TRUE" />
  <Field Name="Title" StaticName="Title" DisplayName="Titel" Type="Text" FromBaseType="TRUE"
         Required="TRUE" ShowInDisplayForm="TRUE" ShowInNewForm="TRUE" ShowInEditForm="TRUE" />
  <Field Name="LastSendAt" StaticName="LastSendAt" DisplayName="Zuletzt versendet am" Type="DateTime"
         Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="TRUE" />
  <Field Name="SendCount" StaticName="SendCount" DisplayName="Anzahl Gesendet" Type="Number"
         ID="5D2E3FFC-C4FA-40CB-8DBC-57C9BFF145A4" Min="0" Decimals="0"
         Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" >
  <Field Name="ShowItem" StaticName="ShowItem" DisplayName="Anzeigen" Type="URL"
         Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" />
  <Field Name="SendAgain" StaticName="SendAgain" DisplayName="Erneut senden" Type="URL"
         Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" />
  <ContentType ID="0x0100E2F56874BC38480481DA64E39727CAC0"
               Group="Custom Content Types"
               Description="Custom Content Type for Newsletter"
               Version="0" >
      <FieldRef ID="21A9B1CC-CBEA-4D8A-9AEF-0F1BD7F1BE97" Name="Title"  
                Required="TRUE" ShowInDisplayForm="TRUE" ShowInNewForm="TRUE" ShowInEditForm="TRUE" />
      <FieldRef ID="EF7457B6-9B1E-4EC5-BDEA-25E7DC261F1E" Name="LastSendAt" 
                Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="TRUE" />
      <FieldRef ID="5D2E3FFC-C4FA-40CB-8DBC-57C9BFF145A4" Name="SendCount" 
                Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" />
      <FieldRef ID="F67BF167-FD90-42E9-88F8-65BCBF107D21" Name="ShowItem" 
                Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE"  />
      <FieldRef ID="C90B89D2-613A-4075-A2F3-5C6359363589" Name="SendAgain" 
                Required="FALSE" ShowInDisplayForm="TRUE" ShowInNewForm="FALSE" ShowInEditForm="FALSE" />
  <View BaseViewID="0" Type="HTML" ReadOnly="FALSE" ContentTypeID="0x0100E2F56874-BC38-4804-81DA-64E39727CAC0" WebPartZoneID="Main" DisplayName="Newsletteransicht" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
    <Toolbar Type="Standard" />
    <XslLink Default="TRUE">main.xsl</XslLink>
    <RowLimit Paged="TRUE">30</RowLimit>
      <FieldRef Name="Attachments" ID="30D9991A-34F3-455F-AE22-31929F68D797" ></FieldRef>
      <FieldRef Name="Title" ID="21A9B1CC-CBEA-4D8A-9AEF-0F1BD7F1BE97" ></FieldRef>
      <FieldRef Name="LastSendAt" ID="EF7457B6-9B1E-4EC5-BDEA-25E7DC261F1E" ></FieldRef>
      <FieldRef Name="SendCount" ID="5D2E3FFC-C4FA-40CB-8DBC-57C9BFF145A4" ></FieldRef>
      <FieldRef Name="ShowItem" ID="F67BF167-FD90-42E9-88F8-65BCBF107D21"></FieldRef>
      <FieldRef Name="SendAgain" ID="C90B89D2-613A-4075-A2F3-5C6359363589"></FieldRef>
        <FieldRef Name="LastSendAt" Ascending="FALSE"></FieldRef>
      <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
      <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
  <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
  <Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
  <Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
share|improve this question
Feel like including the <Views> section? – RJ Cuthbertson Jul 12 '12 at 15:09
What happens if you also add in the ID attribute into the FieldRefs in the ViewFields? – PlanetWilson Jul 12 '12 at 18:33
Long shot - but have you tried adding the FieldRefs in the ViewFields in the form <FieldRef Name="ShowItem" ID="..." />? Rather than an open close? I know it shouldn't make a difference - but I've found that with CAML, sometimes it does. – Andy Burns Jul 16 '12 at 10:26
I also tried this, but the problem is still the same. – Maikm88 Jul 16 '12 at 11:45
up vote 1 down vote accepted

Workaround found. At the moment I defined the ContentType in the ListDefinition. When I sourced it out, to an separate ContentType and referenced this in my View it works.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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