MCFileManager:Configuration/filesystem.file templates
From Moxiecode Documentation Wiki
[edit]
Option: filesystem.file_templates
This option is used by the create file dialog, the files specified in this comma separated list will be used as templates for creating new files. This enables users to select the template from a drop list and create a instance of that file. If you only specify one template in this list no drop list will appear in the create file dialog since it's not needed when the user only has one option.
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.file_templates'] = '${rootpath}/templates/dir1,${rootpath}/templates/dir2';
[edit]
Example of usage in a mc_access file
filesystem.file_templates=${rootpath}/templates/file1.htm,${rootpath}/templates/file2.htm
