thelia/redirection-module

Installs: 35

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 7

Forks: 0

Open Issues: 0

Type:thelia-module

1.0 2015-02-13 15:31 UTC

This package is auto-updated.

Last update: 2024-04-14 20:56:48 UTC


README

This module add the possibility to create 301 redirections from the back office for Thelia 2.1

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is Redirection.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/redirection-module:~1.0

Usage

Go on your back office and activate the module. Refresh the page then you can use the "manage redirections" link in the Tools dropdown.

Hook

The module uses the hook main.top-menu-tools to show the link to the redirection management table.

Loop

permanent-redirection

Input arguments

Argument Description
id A permanent redirection ID.
visible "yes" if you only want online redirections, "no" for offline and * for both
position Filter by position.
order Sort the results. Possible values: "id", "id-reverse", "visible", "visible-reverse", "manual", "manual-reverse", "path", "path-reverse", "destination", "destination-reverse", "title", "title-reverse", "chapo", "chapo-reverse".

Output arguments

Variable Description
$ID The redirection ID
$VISIBLE 1 if the redirection is online, 0 for offline
$POSITION The redirection position
$PATH The redirection path
$PATH The redirection path
$DESTINATION The redirection destination
$TITLE The redirection title
$CHAPO The redirection chapo

Exemple

{loop type="permanent-redirection" name="permanent-redirection" order="visible,position"}
    <!-- ... -->
{/loop}