PHPackages                             thelia/content-code-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. thelia/content-code-module

ActiveThelia-module

thelia/content-code-module
==========================

1.2(10y ago)0151LGPL-3.0+PHP

Since Jul 21Pushed 10y ago6 watchersCompare

[ Source](https://github.com/thelia-modules/ContentCode)[ Packagist](https://packagist.org/packages/thelia/content-code-module)[ RSS](/packages/thelia-content-code-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Content Code
============

[](#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
------------

[](#installation)

### Manually

[](#manually)

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

### Composer

[](#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
-----

[](#usage)

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

Hook
----

[](#hook)

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

Loop
----

[](#loop)

\[content-code\]

### Input arguments

[](#input-arguments)

ArgumentDescription**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

[](#output-arguments)

VariableDescription$IDThe content\_code ID$CONTENT\_IDThe content ID$CODEThe content code### Exemple

[](#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](http://doc.thelia.net/en/documentation/loop/content.html)

### Other input arguments

[](#other-input-arguments)

ArgumentDescription**code**The content code### Exemple

[](#exemple-1)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

3948d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2196919?v=4)[thelia](/maintainers/thelia)[@thelia](https://github.com/thelia)

---

Top Contributors

[![lovenunu](https://avatars.githubusercontent.com/u/6106094?v=4)](https://github.com/lovenunu "lovenunu (5 commits)")[![gillesbourgeat](https://avatars.githubusercontent.com/u/7335734?v=4)](https://github.com/gillesbourgeat "gillesbourgeat (2 commits)")

### Embed Badge

![Health badge](/badges/thelia-content-code-module/health.svg)

```
[![Health](https://phpackages.com/badges/thelia-content-code-module/health.svg)](https://phpackages.com/packages/thelia-content-code-module)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
