PHPackages                             tfd/statamic-content-modules - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tfd/statamic-content-modules

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tfd/statamic-content-modules
============================

v1.0.4(1y ago)0306MITPHP

Since Nov 1Pushed 1y ago3 watchersCompare

[ Source](https://github.com/21stdigital/tfd-statamic-content-modules)[ Packagist](https://packagist.org/packages/tfd/statamic-content-modules)[ RSS](/packages/tfd-statamic-content-modules/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (0)

Content Modules
===============

[](#content-modules)

> Content Modules is a Statamic addon that allows you to easily modify and add data to custom set view templates for replicator or bard fields.

How to install
--------------

[](#how-to-install)

Run the following command from your project root:

```
composer require tfd/statamic-content-modules
```

How to use
----------

[](#how-to-use)

In [bard](https://statamic.dev/fieldtypes/bard) and [replicator](https://statamic.dev/fieldtypes/replicator) fields you can dynamically piece together content sets in whatever order and arrangement you imagine. To better control the data and appearance of the content sets, this addon allows you to write custom PHP classes and view templates for these sets. General information can be found on .

### 1. Create view model class

[](#1-create-view-model-class)

Your first step is to create a view model class that extends the addon's ViewModel.

```
