Download the PHP package thelia/content-code-module without Composer
On this page you can find all versions of the php package thelia/content-code-module. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package content-code-module
Content Code
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 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:
or add it in your main thelia composer.json file
Usage
After having activate the module, go to your content's "module" tab, type your code and click submit.
Hook
This module uses the 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
[content-extend-content-code]
Extends the Thelia loop : Content
Other input arguments
Argument | Description |
---|---|
code | The content code |
Exemple
All versions of content-code-module with dependencies
PHP Build Version
Package Version
Requires
thelia/installer Version
~1.1
The package thelia/content-code-module contains the following files
Loading the files please wait ....