Forum Discussion

Bart-Jan Dekker's avatar
Bart-Jan Dekker
Copper Contributor
Apr 26, 2018

URL of Shared Documents Library in Modern Teamsites

Contrary to classic sites, it is not possible to specify a language when creating a modern site. In multi lingual environments, you'll never know exactly with what default language a site will be created. This language determines the URL of the Shared Documents library. So on an English site this is Shared Documents, in Dutch it is Gedeelde  documenten. 

What is the best way to deal with this in pnp templates, since at design time you don't know neither the exact URL nor the title of the library since this may differ depending on the language the site was created in? AFAIK there is no token available for the URL of the shared documents library.

  • Bart-Jan Dekker's avatar
    Bart-Jan Dekker
    Copper Contributor

    I ended up using resx files and {localize} provisioning engine tokens to localize the title and url of the shared documents list. These are automatically picked up according to the language of the provisioned site by the pnp templating engine. If there are better options, please let me know!

Resources