Forum Discussion

Örjan Andersson's avatar
Örjan Andersson
Brass Contributor
Jun 04, 2018
Solved

Error when using an URL for document template in Content Type

Does anyone know the correct format to use in URL for a template under Advanced settings?

 
Example URL format used : /sites/contentTypeHub/Shared Documents/NajroCustomTemplate.pptx

When this option is used for mapping template to CT, this will fail when trying to use the new CT (distributed via content type hub)  from another site and library. Have tried to store document both in library within CT hub and external library. Everyone have full read access to template library.

Checking with dev tools and console output in brower, the method /_api/web/GetList(@a1)/CreateDocumentAndGetEditLink throws an exception complaining of parameters for template.


Uploading a template directly to the CT works fine (also distributed via CT hub) but I would like to have a central location for the Templates. This worked fine in on-premise long time ago.

  • Hi Örjan!

    As far as i know You must upload the Document template to each Content Type when You are using the Content Type hub. Unfortunately It is not possible to "Centralize" the document templates in one Document library and refer to them in SharePoint Online.

     

    Here are some more info: https://office365.uservoice.com/forums/264636-general/suggestions/18550702-allow-document-template-url-within-content-type-hu

     

     

    BR, Magnus

16 Replies

  • Brent Hutchings's avatar
    Brent Hutchings
    Copper Contributor

    Microsoft's own documentation suggest this is possible.

    https://learn.microsoft.com/en-us/sharepoint/create-customize-content-type#:~:text=Enter%20the%20location,Edit%20template.

    I have done this using a site level content type years ago and I am now trying to get this to work across all sites but have not found any specific rules for the URL. If anyone knows where to find the rules for this, please let me know.

    I believe to get this to work across all sites on your tenant then you must setup the content type in the Content Type Gallery, which unfortunately I don't have access to add content types there.

    • Andre Radtke's avatar
      Andre Radtke
      Brass Contributor
      As I saw yesterday, you can now link to a template via url and thus edit these templates directly without having to upload them again. Is it that what u were missing?
      • Melanie_O365-SPO's avatar
        Melanie_O365-SPO
        Copper Contributor

        Andre Radtkecan you give more information about how you can link templates and from where?

        I've tested this and it is only possible to add a link to a library in the current site collections. So no central place for template management for all templates of all site collections. Even not in the content type hub. (check error message in screenshot)

  • Hi Örjan!

    As far as i know You must upload the Document template to each Content Type when You are using the Content Type hub. Unfortunately It is not possible to "Centralize" the document templates in one Document library and refer to them in SharePoint Online.

     

    Here are some more info: https://office365.uservoice.com/forums/264636-general/suggestions/18550702-allow-document-template-url-within-content-type-hu

     

     

    BR, Magnus

Resources