exp:expwtmigratefromezwt
Replace ezwt (the website toolbar) by expwt (the website sidebar): settings, policies, activation, schedule (dry run unless --apply).
Script bin/php/expwtmigratefromezwt.php, code in kernel/private/classes/commands/expwtmigratefromezwt.php. Run it from the installation root, as the user the web server runs as:
./console exp:expwtmigratefromezwt --help
./console exp:wt:migrate-from-ezwt --help
php bin/php/expwtmigratefromezwt.php --helpHelp text
Replaces ezwt, the website toolbar, by expwt, the website sidebar: copies ezwt's hidden classes
(websitetoolbar.ini) to expwt.ini in settings/override and every siteaccess, gives every
websitetoolbar/use policy as expwt/use, edit, create and structure with the same limitations, the
Editor role those four and the Administrator role expwt/*, and puts expwt in ezwt's place in
ActiveExtensions[] and ActiveAccessExtensions[]. A changed file is kept as <file>.before-expwt.
The sidebar itself stays off until switched on (expwt.ini [ExpwtSettings] Enabled).
It also moves the schedule of earlier expwt versions (publish later, take down) to the kernel's
schedule: the wait-until-date workflow and the hide cronjob. An entry whose class has no date field
the kernel reads stays and is listed as a note; run the command again once it has one.
Without --apply nothing is written. The upgrade step 6.0.15-expwt-enable does the same.
Example: php bin/php/expwtmigratefromezwt.php
php bin/php/expwtmigratefromezwt.php --applyOptions
| Option | Value | Help |
|---|---|---|
--apply | Write the changes (the default is a dry run that lists them and changes nothing) | |
--dry-run | The default: list what would change, change nothing |
Read from the option definitions in the code (startup(), getOptions(), options() or ezcConsoleOption). Every script also takes the standard options of the script framework (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Related
Generated by ./console exp:help:examples from bin/php/expwtmigratefromezwt.php, kernel/private/classes/commands/expwtmigratefromezwt.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.