How to configure custom folder structure to the Document Library in V 7.0.6

thumbnail
Omkar Khandare, modified 7 Years ago. Junior Member Posts: 49 Join Date: 3/7/12 Recent Posts
I want to configure custom directory structure into to the Document Library.

Found that Advanced File Store can be used in such cases but unable to see exact steps for version 7.0.6 with Glassfish 4 server.
I have updated folder path into Configuration -> System Seetings -> Collaboration - > Document Library and Rebuild restarted the server.

Can any one provide help on this and exact way of configuring any network folder structure or folder from Liferay Server itself.

Thanks
thumbnail
Olaf Kock, modified 7 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Omkar KhandareI want to configure custom directory structure into to the Document Library.

Found that Advanced File Store can be used in such cases but unable to see exact steps for version 7.0.6 with Glassfish 4 server.
I have updated folder path into Configuration -> System Seetings -> Collaboration - > Document Library and Rebuild restarted the server.

Can any one provide help on this and exact way of configuring any network folder structure or folder from Liferay Server itself.
What does "configure" mean? You can configure where Liferay stores the data. If you configure AdvancedFileSystemStore, that store's implementation will store the data in the format that it uses. The format is an implementation detail of AdvancedFileSystemStore. Other than the root directory, there's nothing to configure.
If you'd like to change the directory structure beneath the root folder, create your own store implementation.
Beware: If you do that in order to be able to open the documents from other applications: Don't! You'd risk to change documents outside of Liferay, thus you'll end up with all kinds of unexpected behavior. Not only am I talking about File Locks, but also documents that are not properly indexed, documents that are in the file system but not in the metadata in Liferay's document library (e.g. tags, categories, author etc).

In order to move an existing repository, you can't just change the directory name in the configuration: First you'll need to make sure that the new location has exactly the same data that you'd expect there.