MCFileManager:Configuration/filesystem.directory templates
From Moxiecode Documentation Wiki
[edit]
Option: filesystem.directory_templates
This option is used by the create directory dialog, the files specified in this comma separated list will be used as templates for creating new directories. This enables users to select the template from a drop list and create a instance of that directory. If you only specify one template in this list no drop list will appear in the create directory dialog since it's not needed when the user only has one option.
This option can be very useful when for example a index.html file and a images directory is to be auto created for the user.
There are a few build in variables that gets auto replaced when this option is used, these variables are:
- ${path}
- The current path.
- ${rootpath}
- The current root path.
- ${configpath}
- The current mc_access path.
[edit]
Example of usage in the config.php file
$mcFileManagerConfig['filesystem.directory_templates'] = '${rootpath}/templates/dir1,${rootpath}/templates/dir2';
[edit]
Example of usage in a mc_access file
filesystem.directory_templates=${rootpath}/templates/dir1,${rootpath}/templates/dir2
