Skip to the content
Documentation

exp:expwtmigratefromezwt

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Replace ezwt (the website toolbar) by expwt (the website sidebar): settings, policies, activation, schedule (dry run unless --apply)

Usage

./console exp:expwtmigratefromezwt [options]
php bin/php/expwtmigratefromezwt.php [options]
./console exp:wt:migrate-from-ezwt [options]

Aliases

exp:wt:migrate-from-ezwt

Help

The output of ./console help exp:expwtmigratefromezwt (the script run with --help), without the standard options:

Usage: bin/php/expwtmigratefromezwt.php [OPTION]...
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 --apply


Options:
  --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

Options

Option Value Description
--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

Standard options

Every script also takes the standard options of the script framework: --help, --quiet, --siteaccess, --debug, --colors, --no-colors, --logfiles, --no-logfiles, --verbose and --allow-root-user.

Source

bin/php/expwtmigratefromezwt.php, kernel/private/classes/commands/expwtmigratefromezwt.php

See also

Generated example: exp:expwtmigratefromezwt

Added to the reference for Exponential 6.0.15.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.