PHPackages                             lwc/lwccmscontent - 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. [Framework](/categories/framework)
4. /
5. lwc/lwccmscontent

ActiveLibrary[Framework](/categories/framework)

lwc/lwccmscontent
=================

ZF2 module for CMS content via LwcCmsPage module

014PHP

Since Dec 9Pushed 12y ago3 watchersCompare

[ Source](https://github.com/lewildcode/lwccmscontent)[ Packagist](https://packagist.org/packages/lwc/lwccmscontent)[ RSS](/packages/lwc-lwccmscontent/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

LwcCmsContent
=============

[](#lwccmscontent)

### Composer

[](#composer)

```
"require": {
    "lwc/lwccmspage": "1.*", /* if not added yet */
    "lwc/lwccmscontent": "1.*"
}

```

### ZF2 config setup

[](#zf2-config-setup)

- Add the "LwcCmsContent" module to your **config/application.config.php** file

### Database setup

[](#database-setup)

- **Warning:** Make sure to setup the LwcCmsPage module first!
- Import the **data/table-init.sql** file into your database. It will create a few basic tables for storing the cms contents.
- The module will provide a ServiceManager alias called **LwcCmsContent\\DbAdapter**. Per default, it points to a "dbAdapter" service. You may have to change this according to your application's default database adapter.

Defining your own content types
-------------------------------

[](#defining-your-own-content-types)

You may extend the LwcCmsContent module with your own content types. I'll describe an example use-case for a "person" content type here.

#### Type definition in your module's config file

[](#type-definition-in-your-modules-config-file)

```
