SOLVED

Error when using an URL for document template in Content Type

Brass Contributor

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.

15 Replies
best response confirmed by Örjan Andersson (Brass Contributor)
Solution

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-u...

 

 

BR, Magnus

I hope they add this asap, this is an important requirement for us.

Are there any News for this topic? 

I´m facing the sam problem right now

Unfortunately not...
We have same requirement. Voted in Uservoice.
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?

@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)

Sorry Melanie, I missunderstood the functionality and I checked where I stored my Word Template and it was the sitecollection for the contenttype hub itself. So I understood that you like to use a central place (maybe intranet) where your templates are stored which is not the contenttypehub´s site. I tried it with another site and it really does not work - SORRY! :\

@Andre Radtke It only worked for me this way:

AndreRadtke_0-1633611274394.png

a page other than the contentypehub itself does not seem to work.

I'v tried uploading the templates to the content type hub but when using that content type in another site collection, and creating a document will result into "blank page: Untitled"
Oh, okay, I'll have to test that as well and will provide feedback if I experience the same behavior.

@Melanie_O365-SPO I am geting also a about:blanc page... seems to be a bug ?!? 🤷‍:male_sign::see_no_evil_monkey:

Hi. Im new to using templates like this. I am currently just uploading, however we have stored our templates in a folder on the same sharepoint teams site where we want to use the templates. What type of link works for directly connecting the SP sites template to a folder location on the same SP site? Can this be the sharing link (existing access type)?

Also we are not use a .dotx, does this matter. We are using docx.

@MattWearmouth 

Looks like the case is not resolved :\
I manage issue in github but it has been closed :\
Unable to create document from custom content type, using document template · Issue #9171 · SharePoi...

Ok, so what I learned... If the template document is not from contentTypeHub when we want to use "external link" (other site collection) URL the Content Type will be saved with hidden folder (with the CT name) created in contentTypeHub _cts library:Screenshot 2023-10-11 120447.png

But as you can see the FOLDER is empty...

Next when we are adding Content Type to any site collection it will not fail but because in the _cts we dont have any content the Content Type from User perspective will not work as there is no file which can be used...

 

It looks like the method to assign URL is partially broken :\



Hope this will help...
Regards
Dawid

1 best response

Accepted Solutions
best response confirmed by Örjan Andersson (Brass Contributor)
Solution

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-u...

 

 

BR, Magnus

View solution in original post