- ⌂ io_comand_publication
- Configurations
- Content Types
Script Configuration
The Script configuration specifies what features to make available when processing cScript and cTemplate code during the publish process.
- modules - Array of cScript modules to load when processing cScript and cTemplate code during the publish process. The following modules are available and used by default.
- \io_comand_email\script - Enable #EMAIL.
- \io_comand_file\script - Enable #FILE and #FILESIZE.
- \io_comand_file\zip\script - Enable #ARCHIVELIST.
- \io_comand_pdf\script - Enable #PDF.
- \io_comand_process\script\perl - Enable #PERL.
- \io_comand_process\script\php - Enable #PHP.
- \io_comand_publication\script - Enable the Publishing Directives.
- \io_comand_repo\script\edit - Enable #ADD and #EDIT.
- \io_comand_repo\script\read - Enable most Content Directives.
- \io_comand_sql\script - Enable #SQL and #SQLDB.
- \io_comand_script\dependencies - Enable script dependencies.
Example
To override defaults, add the following section to the COMAND Package Configuration.
<?php
$config = [
'io_comand_publication' => [
'script' => [
'modules' => [
'\io_comand_email\script',
'\io_comand_file\script',
'\io_comand_file\zip\script',
'\io_comand_image\script',
'\io_comand_pdf\script',
'\io_comand_process\script\perl',
'\io_comand_process\script\php',
'\io_comand_publication\script',
'\io_comand_repo\script\edit',
'\io_comand_repo\script\read',
'\io_comand_sql\script',
'\io_comand_script\dependencies',
]
]
]
];