AnswerBun.com

A document library with custom content type displays the different icon while creating new document

I have created a document library declaratively with document based content type. But when I click on new document the icon is displayed of item instead of word.

Below is the example:

enter image description here

List tempalte is:

<ListTemplate
        Name="Documents"
        Type="11108"
        BaseType="1"
        OnQuickLaunch="TRUE"
        SecurityBits="11"
        DisallowContentTypes="false"
        Sequence="110"      
        DisplayName="QMSDocuments"          
        Image="/_layouts/15/images/itdl.png"
        DocumentTemplate="121"/>

<!-- Parent ContentType: Document (0x0101) -->
<ContentType ID="0x0101001EF0C163152340AE96F20234E13DC89B"
           Name="Docs"             
           Inherits="TRUE" Version="0">
<FieldRefs>
  <FieldRef ID="{44802E47-FE3F-4AB2-92BB-523A99E24B1D}" Name="DocTYpe"/>
  <FieldRef ID="{41F5A41B-BCC9-45B0-9CA5-48BB023713B8}" Name="Approver1"/>
  <FieldRef ID="{374F0F87-AFEB-4E88-A039-A3CADD24A5B1}" Name="Approver2"/>
  <FieldRef ID="{5DD956B5-65DD-4861-811F-42BE0C07B118}" Name="Author"/>
  <FieldRef ID="{257F1CC5-0DF4-420A-ACF1-8511FCD5240C}" Name="Chapter"/>
  <FieldRef ID="{2631BE05-A16D-4E41-948B-73F42D536705}" Name="ChapterNumber"/>
  <FieldRef ID="{7B08A524-E877-43C9-B8D5-A8143993B3B1}" Name="oiplbQmsDocumentSubject"/>
</FieldRefs>
</ContentType>

What should I do to dispaly the Word icon?

SharePoint Asked by users1100 on January 1, 2021

1 Answers

One Answer

I think you have to deploy a document template with your contenttype

 <Folder TargetName="Forms/Docs" />
 <DocumentTemplate TargetName="DocumentTemplate.docx" />

The DocumentTemplate.docx can you deploy with a module.

You can also specify a documenttemplate manually. Open your contenttype > Advanced settings > Add your document template

Answered by Remko on January 1, 2021

Add your own answers!

Related Questions

Error creating SPFx with React JS

1  Asked on October 28, 2020 by tezz-chaudhary

   

Depolying SPFX Web Part on On Prem 2019

0  Asked on October 12, 2020 by kurt-cooney

       

Automate posting to SharePoint with Python

1  Asked on October 4, 2020 by brinley

 

Workflow updating a multiple value lookup column

1  Asked on October 3, 2020 by jl421

     

how to search people in search box in sharepoint 2013

1  Asked on September 6, 2020 by sharepointman

   

How to see checked out file

2  Asked on September 2, 2020 by dingo

 

SharePoint o365/online – This site can’t be reached

1  Asked on August 26, 2020 by rohit-waghela

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.