Skip to content

Commit

Permalink
API Update API to reflect changes to CLI interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Sep 25, 2024
1 parent 32a6681 commit fd38fcd
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 317 deletions.
2 changes: 1 addition & 1 deletion docs/en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ with composer.
composer require tractorcow/silverstripe-fluent ^5
```

* Run a `dev/build` to ensure all additional table fields have been generated
* Run `sake db:build --flush` to ensure all additional table fields have been generated
* Configure your locales in the `/admin/locales` section
* Publish pages in each of the locales you want them to be visible in

Expand Down
23 changes: 12 additions & 11 deletions docs/en/migrating-from-single-language.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ TractorCow\Fluent\Model\Locale:
URLSegment: en
```

When you run `dev/build?flush` again, this adds the records to the database if the locales table is still empty.
When you run `sake db:build --flush` again, this adds the records to the database if the locales table is still empty.

## Populating initial localised content for existing Pages and DataObjects in your default locale

Expand Down Expand Up @@ -63,32 +63,33 @@ publish your `Versioned` data (including Pages) from the commandline or queued a

1. Example: Localise all Pages (default, without publishing)

```
dev/tasks/initial-page-localisation-task
```sh
sake tasks:initial-page-localisation-task
```

2. Example: Localise & publish all Pages

```
dev/tasks/initial-page-localisation-task publish=1
```sh
sake tasks:initial-page-localisation-task --publish
```

3. Example: Localising Pages in batches can be done by using the `limit` option.
This will localise & publish five pages on each run.

```
dev/tasks/initial-page-localisation-task publish=1&limit=5
```sh
sake tasks:initial-page-localisation-task --publish --limit=5
```

4. Example: All the same functionality is available for localising all DataObjects, including `Versioned` and non-Versioned classes

```sh
sake tasks:initial-dataobject-localisation-task
```
dev/tasks/initial-dataobject-localisation-task
```

or

```
dev/tasks/initial-dataobject-localisation-task publish=1&limit=5
```sh
sake tasks:initial-dataobject-localisation-task --publish --limit=5
```

#### Customize your own initialisation dev task
Expand Down
222 changes: 0 additions & 222 deletions src/Task/ConvertTranslatableTask.php

This file was deleted.

23 changes: 0 additions & 23 deletions src/Task/ConvertTranslatableTask/Exception.php

This file was deleted.

Loading

0 comments on commit fd38fcd

Please sign in to comment.