release 1.6 (fix #1)

This commit is contained in:
Jean-Christian Paul Denis 2023-05-01 01:15:19 +02:00
parent 4afb4d73c2
commit e7309942c0
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
5 changed files with 52 additions and 31 deletions

View File

@ -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

View File

@ -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)

View File

@ -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',

View File

@ -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>

View File

@ -1,11 +1,10 @@
<?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 !
# #