-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Jeremuelle/dev
chore(Export) Move export feature to the module + move some configs to be configured on a yml for ss sites
- Loading branch information
Showing
6 changed files
with
78 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## Quick Start | ||
|
||
### How to use data export | ||
* Create new export, set title | ||
* Choose which type you want to export | ||
* If there is a particular page you wanted to export, use Filter to specify export | ||
* Tick 'Do export' | ||
* Hit Save | ||
* Copy the exported JSON to import to your test site. | ||
|
||
### Limitations | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,20 +16,37 @@ | |
|
||
class SeedWebsiteTask extends BuildTask | ||
{ | ||
private static $segment = 'SeedWebsiteTask'; | ||
|
||
/** | ||
* Array of glob strings for matching import locations | ||
* | ||
* @var string[] | ||
*/ | ||
private static $import_paths = []; | ||
|
||
private static $tester_pass = ''; | ||
private static $tester_email = '[email protected]'; | ||
/** | ||
* Set test email to reset password | ||
* @var string | ||
*/ | ||
private static $tester_email = ''; | ||
|
||
private static $segment = 'SeedWebsiteTask'; | ||
/** | ||
* Set new password | ||
* @var string | ||
*/ | ||
private static $tester_pass = ''; | ||
|
||
/** | ||
* Don't run the task in production site, set production host | ||
* @var string | ||
*/ | ||
private static $production_host = ''; | ||
|
||
/** | ||
* For Multisite hosts, set an array of strings | ||
* @var string[] | ||
*/ | ||
private static $host_aliases = []; | ||
|
||
public function run($request) | ||
|
@@ -91,7 +108,6 @@ public function run($request) | |
$object->write(); | ||
} | ||
|
||
|
||
if ($object && !($object instanceof BaseElement)) { | ||
if ($object->hasMethod('publishRecursive')) { | ||
Debug::message("Publishing $object->Title", false); | ||
|