thelia / content-code-module
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 1
Open Issues: 0
Type:thelia-module
Requires
- thelia/installer: ~1.1
This package is auto-updated.
Last update: 2024-10-14 22:12:11 UTC
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
Output arguments
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
Exemple
{loop type="content-extend-content-code" name="content-extend-content-code" code="foo"} ... {/loop}