Skip to content

Commit

Permalink
Bugfix: CLI return status, add CLI command to readme, raise version
Browse files Browse the repository at this point in the history
  • Loading branch information
abplana committed May 1, 2020
1 parent 27cc90c commit 6b5b370
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 6 deletions.
2 changes: 2 additions & 0 deletions Classes/Command/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
$message=\TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate($pagesCount!=1 ? 'igSlug.populatedSlugs' : 'igSlug.populatedSlug', 'ig_slug', [$pagesCount]);

$io->success($message);
return 0;
} else {
$io->error('Error table "'.$tablename . '" not found');
return 1;
}

//$io->writeln('<comment>Data user=' . $username . ', is password valid='.$validPassword.', FTP User = '. $ftpUser.', new password hash=' .$hashedPassword . '</comment>');
Expand Down
4 changes: 2 additions & 2 deletions Documentation/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Managing slugs
ig_slug

:Version:
1.0.1
1.0.4

:Language:
en
Expand All @@ -29,7 +29,7 @@ Managing slugs
slug,speaking url,slugs,rebuild,url,tool

:Copyright:
2019
2020

:Author:

Expand Down
6 changes: 3 additions & 3 deletions Documentation/Settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@

---
conf.py:
copyright: 2019
copyright: 2020
project: Managing slugs
version: 0.9.0
release: 0.9.0
version: 1.0.4
release: 1.0.4
intersphinx_mapping:
t3tsref:
- http://docs.typo3.org/typo3cms/TyposcriptReference/
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# TYPO3 Extension 'ig_slug'

[![Latest Stable Version](https://poser.pugx.org/internetgalerie/ig-slug/v/stable)](https://packagist.org/packages/internetgalerie/ig-slug)
[![Monthly Downloads](https://poser.pugx.org/internetgalerie/ig-slug/d/monthly)](https://packagist.org/packages/internetgalerie/ig-slug)
[![License](https://poser.pugx.org/internetgalerie/ig-slug/license)](https://packagist.org/packages/internetgalerie/ig-slug)

Rebuild URL slugs of pages an other tables

## 1. What does it do?
Expand All @@ -25,6 +29,17 @@ The recommended way to install the extension is by using [Composer][2]. In your
Download and install the extension with the extension manager module.


### 2) CLI

The slugs can also rebuilded in CLI, e.g.

`typo3/sysext/core/bin/typo3 ig_slug:update tx_news_domain_model_news`

or with pid

`typo3/sysext/core/bin/typo3 ig_slug:update tx_news_domain_model_news 99`


[1]: https://docs.typo3.org/typo3cms/extensions/ig_slug/
[2]: https://getcomposer.org/

2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
'uploadfolder' => 0,
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '1.0.3',
'version' => '1.0.4',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-10.9.99',
Expand Down

0 comments on commit 6b5b370

Please sign in to comment.