release 1.6 (fix #1)
This commit is contained in:
parent
4afb4d73c2
commit
e7309942c0
@ -1,3 +1,11 @@
|
|||||||
|
1.6 - 2023.05.01
|
||||||
|
- require dotclear 2.26
|
||||||
|
- use behavior intead of urlHandler (see README)
|
||||||
|
- fix URL before saving (without blog URL)
|
||||||
|
- add option for visible redirection
|
||||||
|
- add plugin Uninstaller features
|
||||||
|
- change table structure (for redirect option)
|
||||||
|
|
||||||
1.5.1 - 2023.04.09
|
1.5.1 - 2023.04.09
|
||||||
- require dotclear 2.26
|
- require dotclear 2.26
|
||||||
- use sql statement
|
- use sql statement
|
||||||
|
13
README.md
13
README.md
@ -28,6 +28,19 @@ Dotaddict repository. (See Dotclear's documentation to know how do this)
|
|||||||
|
|
||||||
You can manage your aliases from menu ''Alias'' on admin dashboard sidebar.
|
You can manage your aliases from menu ''Alias'' on admin dashboard sidebar.
|
||||||
|
|
||||||
|
## RULES
|
||||||
|
|
||||||
|
Only blog URLs can be redirected.
|
||||||
|
It can redirect a specific URL "plop" to another one "post/2023/04/24/my-post".
|
||||||
|
It can redirect all URLs that content "plop" using alias "/plop/"
|
||||||
|
by replacing it by destination "post" into requesting URL.
|
||||||
|
It can not redirect an alias to another alias. (Even if it's not at the begining of the URL!)
|
||||||
|
It has priority on all ohters URLs handlers, so if you create an alias of an existing page,
|
||||||
|
the destination from plugin _alias_ will be used.
|
||||||
|
|
||||||
|
Keep in mind, plugin _alias_ loads all registered aliases to test them on each page load,
|
||||||
|
so more there are aliases, more page load is slow.
|
||||||
|
|
||||||
## LINKS
|
## LINKS
|
||||||
|
|
||||||
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
|
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* @copyright Jean-Christian Denis
|
* @copyright Jean-Christian Denis
|
||||||
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
|
||||||
*/
|
*/
|
||||||
if (!defined('DC_RC_PATH')) {
|
if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -18,13 +18,14 @@ $this->registerModule(
|
|||||||
'alias',
|
'alias',
|
||||||
"Create aliases of your blog's URLs",
|
"Create aliases of your blog's URLs",
|
||||||
'Olivier Meunier and contributors',
|
'Olivier Meunier and contributors',
|
||||||
'1.5.1',
|
'1.6',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.26']],
|
'requires' => [['core', '2.26']],
|
||||||
'permissions' => dcCore::app()->auth->makePermissions([
|
'permissions' => dcCore::app()->auth->makePermissions([
|
||||||
dcCore::app()->auth::PERMISSION_ADMIN,
|
dcCore::app()->auth::PERMISSION_ADMIN,
|
||||||
]),
|
]),
|
||||||
'type' => 'plugin',
|
'type' => 'plugin',
|
||||||
|
'priority' => 2,
|
||||||
'support' => 'https://github.com/JcDenis/alias',
|
'support' => 'https://github.com/JcDenis/alias',
|
||||||
'details' => 'https://plugins.dotaddict.org/dc2/details/alias',
|
'details' => 'https://plugins.dotaddict.org/dc2/details/alias',
|
||||||
'repository' => 'https://raw.githubusercontent.com/JcDenis/alias/master/dcstore.xml',
|
'repository' => 'https://raw.githubusercontent.com/JcDenis/alias/master/dcstore.xml',
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="alias">
|
<module id="alias">
|
||||||
<name>alias</name>
|
<name>alias</name>
|
||||||
<version>1.5.1</version>
|
<version>1.6</version>
|
||||||
<author>Olivier Meunier and contributors</author>
|
<author>Olivier Meunier and contributors</author>
|
||||||
<desc>Create aliases of your blog's URLs</desc>
|
<desc>Create aliases of your blog's URLs</desc>
|
||||||
<file>https://github.com/JcDenis/alias/releases/download/v1.5.1/plugin-alias.zip</file>
|
<file>https://github.com/JcDenis/alias/releases/download/v1.6/plugin-alias.zip</file>
|
||||||
<da:dcmin>2.26</da:dcmin>
|
<da:dcmin>2.26</da:dcmin>
|
||||||
<da:details>https://plugins.dotaddict.org/dc2/details/alias</da:details>
|
<da:details>https://plugins.dotaddict.org/dc2/details/alias</da:details>
|
||||||
<da:support>https://github.com/JcDenis/alias</da:support>
|
<da:support>https://github.com/JcDenis/alias</da:support>
|
||||||
|
@ -1,37 +1,36 @@
|
|||||||
<?php
|
<?php
|
||||||
// Language: Français
|
/**
|
||||||
// Module: alias - 1.6
|
* @package Dotclear
|
||||||
// Date: 2023-04-30 22:52:13
|
*
|
||||||
// Author: Jean-Christian Denis
|
* @copyright Olivier Meunier & Association Dotclear
|
||||||
// Translated with Translater - 2023.04.23
|
* @copyright GPL-2.0-only
|
||||||
|
*/
|
||||||
|
|
||||||
#
|
#
|
||||||
# DOT NOT MODIFY THIS FILE !
|
# DOT NOT MODIFY THIS FILE !
|
||||||
#
|
#
|
||||||
|
|
||||||
use Dotclear\Helper\L10n;
|
use Dotclear\Helper\L10n;
|
||||||
|
|
||||||
L10n::$locales['Invalid aliases definitions'] = 'Définitions d\'alias invalides';
|
L10n::$locales['Invalid aliases definitions'] = 'Définitions d\'alias invalides';
|
||||||
L10n::$locales['Alias URL is empty.'] = 'L\'URL de l\'alias est vide.';
|
L10n::$locales['Alias URL is empty.'] = 'L\'URL de l\'alias est vide.';
|
||||||
L10n::$locales['Alias destination is empty.'] = 'La destination de l\'alias est vide.';
|
L10n::$locales['Alias destination is empty.'] = 'La destination de l\'alias est vide.';
|
||||||
L10n::$locales['Aliases successfully updated.'] = 'Alias mis à jour avec succès.';
|
L10n::$locales['Aliases successfully updated.'] = 'Alias mis à jour avec succès.';
|
||||||
L10n::$locales['Alias successfully created.'] = 'Alias créer avec succès.';
|
L10n::$locales['Alias successfully created.'] = 'Alias créer avec succès.';
|
||||||
L10n::$locales['New alias'] = 'Nouvel alias';
|
L10n::$locales['New alias'] = 'Nouvel alias';
|
||||||
L10n::$locales['Alias URL:'] = 'URL de l\'alias :';
|
L10n::$locales['Alias URL:'] = 'URL de l\'alias :';
|
||||||
L10n::$locales['Alias destination:'] = 'Destination de l\'alias :';
|
L10n::$locales['Alias destination:'] = 'Destination de l\'alias :';
|
||||||
L10n::$locales['Do not put blog URL "%s" in fields.'] = 'Ne pas mettre l\'URL du blog "%s" dans les champs.';
|
L10n::$locales['Do not put blog URL "%s" in fields.'] = 'Ne pas mettre l\'URL du blog "%s" dans les champs.';
|
||||||
L10n::$locales['Do visible redirection to destination'] = 'Faire une redirection visible vers la destination';
|
L10n::$locales['Do visible redirection to destination'] = 'Faire une redirection visible vers la destination';
|
||||||
L10n::$locales['No alias'] = 'Aucun alias';
|
L10n::$locales['No alias'] = 'Aucun alias';
|
||||||
L10n::$locales['There is %s alias.'] = [
|
L10n::$locales['There is %s alias.'] = [
|
||||||
'Il y a %s alias.',
|
'Il y a %s alias.',
|
||||||
'Il y a %s alias.',
|
'Il y a %s alias.',
|
||||||
];
|
];
|
||||||
L10n::$locales['Aliases list'] = 'Liste des alias';
|
L10n::$locales['Aliases list'] = 'Liste des alias';
|
||||||
L10n::$locales['Alias URL'] = 'URL de l\'alias';
|
L10n::$locales['Alias URL'] = 'URL de l\'alias';
|
||||||
L10n::$locales['Alias destination'] = 'Destination de l\'alias';
|
L10n::$locales['Alias destination'] = 'Destination de l\'alias';
|
||||||
L10n::$locales['Alias position'] = 'Position de l\'alias';
|
L10n::$locales['Alias position'] = 'Position de l\'alias';
|
||||||
L10n::$locales['Redrection'] = 'Redirection';
|
L10n::$locales['Redrection'] = 'Redirection';
|
||||||
L10n::$locales['visible redirection to %s'] = 'Redirection visible vers %s';
|
L10n::$locales['visible redirection to %s'] = 'Redirection visible vers %s';
|
||||||
L10n::$locales['To remove an alias, empty its URL or destination.'] = 'Pour supprimer un alias, videz son URL ou sa destination.';
|
L10n::$locales['To remove an alias, empty its URL or destination.'] = 'Pour supprimer un alias, videz son URL ou sa destination.';
|
||||||
L10n::$locales['Aliases'] = 'Alias';
|
L10n::$locales['Aliases'] = 'Alias';
|
||||||
|
Loading…
Reference in New Issue
Block a user