To be able to create documents from within MetaShare’s user interface, a document library for MetaShare’s document templates needs to be created, configured and defined.
Below you find instructions for how to:
- Create the document templates’ library and set appropriate permissions
- Add document columns to the templates’ library
- Define the path to the document templates, in MetaShare
- Make the MetaShare templates available from Office applications
Create the document templates’ library and set appropriate permission
In order to make the templates easily accessible to the template editors, our recommendation is to create a MetaShare workspace for your document templates, based on a unique workspace configuration that makes it easy to find and structure the templates.
The document template’s can however be stored in any SharePoint site, e.g. a specific document library in the content type hub, or a specific standard SharePoint site collection. Regardless of where the templates are stored, all users need read permissions to the library where they are stored.
Add document columns to the templates’ library
In order to create smart document templates, the document library needs to have the columns that should be added to the templates. If the templates are located in a MetaShare workspace this step might not be needed, as MetaShare automatically adds document columns to the document library, but only the document columns that belong to the workspace configuration’s content type(s). To add document columns to the templates’ library, do the following:
- Open the document library’s settings by clicking on “Site contents” on the left navigation, then clicking on the ellipsis (three vertical dots) and selecting the “Settings” option:
- Under the “Columns” section, click on the “Add from existing columns” link:
- To make it easier to select the applicable columns to add, select the applicable site column group. Select the applicable columns, click on the “Add” button and then on the form’s “OK” button.
Define the path to the document templates, in MetaShare
- Once the document template library has been created, copy the path to the document library and paste it into the “Document template library” field in MetaShare’s general settings:
- Add meaningful templates to the document template library.
- A “New” function will now be visible in the toolbar inside workspaces, displaying all templates in the document template library. Click it to create documents.
Make the MetaShare templates available from Office applications
The document templates that are uploaded to MetaShare’s template library can also be made available from Office applications (Word, Excel and PowerPoint), if users also want to create documents from there, but only the “real” document templates will be shown (.dotx, .potx, .xltx). This is done by designating the template’s library as the central location for organization assets across your tenant, using PowerShell, by following these steps:
- Open PowerShell (click on the computer’s start button and type “PowerShell”) and start the application.
- If you haven’t installed PowerShell’s PnP module yet, install it by following these instructions.
- Connect to SharePoint’s content type hub by writing this PowerShell command (replace “yourtenant” with your tenant):
Connect-PnPOnline –Url https://yourtenant.sharepoint.com/sites/contentTypeHub -Credentials (Get-Credential)If you use multi-factor authentication on your tenant, you need yo use this command:
Connect-PnPOnline -Url https://yourtenant.sharepoint.com/sites/contentTypeHub -UseWebLogin
You will be prompted to login:
- Make sure that “Everyone except external users” group has Read permissions on the library where your templates are located. Customize permissions on files and folder in the library if needed.
- Make sure that CDN is enabled for your organization by running the following command:
Get-PnPTenantCdnEnabled -CdnType Private
If the value if False run:
Set-PnPTenantCdnEnabled -CdnType Private -Enable $true
- Designate the template’s library as an organization assets library, by running this PowerShell command, with this syntax:
Add-PnPOrgAssetsLibrary -LibraryURL [the URL for the template's library] -OrgAssetType OfficeTemplateLibrary-CdnType Private
So, for this URL:
The command will be:
Add-PnPOrgAssetsLibrary -LibraryURL https://contoso.sharepoint.com/sites/MetaShares-Document-Templates/Documents -OrgAssetType OfficeTemplateLibrary-CdnType Private
Note that it may take from a couple of hours to a day for this change to be reflected in your Office applications.
- Once the changes have been applied, your MetaShare templates will now be shown in Office, when you click on the application’s “File” tab, the “New” option on the left navigation and then a tab with your organization’s name on it: