Skip to content

Passing parameters to the FM

pavel edited this page Mar 16, 2016 · 11 revisions

The filemanager accepts some parameters to be passed into the URL :

Passing a config file

Since v2.3.0, it is now possible to pass a javascript config file stored in /scripts/. Note that the config file can also be generated dynamically. It should just return a json object formatted as expected.

http://fm.linea21.com/index.html?config=user.config.json

Changing language

You can specify the language by using langCode. See example below :

http://fm.linea21.com/index.html?langCode=zh-cn

Opening a given folder

You can open a given folder by passing it into the URL with expandedFolder parameter. See example below :

http://fm.linea21.com/index.html?expandedFolder=My_folder/

Restrict the view to a given folder

You can open a given folder by passing it into the URL with exclusiveFolder parameter. See example below :

http://fm.linea21.com/index.html?exclusiveFolder=My_folder/

Be careful, this will allow restrict the view but it can be changed easily by user only by changing parameter value from URL. For restricted permissions on folders please have a lookn on How to allow users to have their own folder

Restrict the view to images

You can show only images by passing type=images into the URL with. See example below :

http://fm.linea21.com/index.html?type=images