cancel
Showing results for 
Search instead for 
Did you mean: 

Would it be possible to rename the documentLibrary folder?

gronfelt
Champ in-the-making
Champ in-the-making
Is it possible to rename the documentLibrary folder in a site, or would that mess something up? I've performed a simple test and it seems to be working, but I'm a bit worried that I might cause any future problems.
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
First question: why would you want to? (genuine question…)

You can, but you have to search/replace each occurrence of "documentLibrary" in the template instance files in Share (assuming you're on v3.2)

Thanks,
Mike

gronfelt
Champ in-the-making
Champ in-the-making
It's all about internationalization. My users will sometimes work with their files through the WebDAV interface, meaning that they will be exposed to the real folder names and it would look a bit neater with the Swedish names.

Of course this means that I would also have to change some other folder names, such as calendar and discussions for instance.'

I'm not sure what files you mean by "template instance files", which files do I need to look for?

(At the moment I'm trying to grasp how the Alfresco/Share files are organized, a somewhat overwhelming task.)

mikeh
Star Contributor
Star Contributor
Look at the config files in site-data/template-instances. This is where the container is set for the Document Library components.

For completeness, you'll also need to update the containerId setting in the .get.html.ftl files, as well as the defaults being set in the client-side JavaScript files, hoever these two steps shouldn't be necessary.

You might find some other places where "documentLibrary" is unintentionally hard-coded, or we haven't yet implemented a dynamic value throughout the code. Easiest way to is do  case-sensitive search for "documentLibrary" and change all those that look like they're referring to a "container".

Thanks,
Mike