thelia/redirection-module 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thelia/redirection-module

最新稳定版本:1.0

Composer 安装命令:

composer require thelia/redirection-module

包简介

README 文档

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}

统计信息

  • 总下载量: 36
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-02-13