定制 thelia/content-code-module 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

thelia/content-code-module

最新稳定版本:1.2

Composer 安装命令:

composer require thelia/content-code-module

包简介

README 文档

README

This module allows you to add unique codes for contents. It may be used to retrieve contents with codes instead of IDs.

Installation

Manually

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

Composer

Execute this in a terminal, in your thelia directory:

$ composer require thelia/content-code-module:~1.2

or add it in your main thelia composer.json file

"require": {
 "thelia/content-code-module": "~1.2"
}

Usage

After having activate the module, go to your content's "module" tab, type your code and click submit.

Hook

This module uses the content.tab-content hook to add the code form.

Loop

[content-code]

Input arguments

Argument Description
id The content_code ID
content_id The content ID
code The content code
order The order to retrieve the content codes. Values: id, id-reverse, content_id, content_id-reverse, code, code-reverse

Output arguments

Variable Description
$ID The content_code ID
$CONTENT_ID The content ID
$CODE The content code

Exemple

{loop type="content-code" name="content-code" code="foo"}
    {loop type="content" name="content" id=$CONTENT_ID}
        ...
    {/loop}
{/loop}

[content-extend-content-code]

Extends the Thelia loop : Content

Other input arguments

Argument Description
code The content code

Exemple

{loop type="content-extend-content-code" name="content-extend-content-code" code="foo"}
    ...
{/loop}

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 6
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-07-21