PHPackages                             icybee/module-pages - 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. [Admin Panels](/categories/admin)
4. /
5. icybee/module-pages

ActiveIcanboogie-module[Admin Panels](/categories/admin)

icybee/module-pages
===================

Manages Icybee pages

v3.0.0(9y ago)03352BSD-3-ClausePHPPHP &gt;=5.5

Since Oct 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Icybee/module-pages)[ Packagist](https://packagist.org/packages/icybee/module-pages)[ RSS](/packages/icybee-module-pages/feed)WikiDiscussions 3.0 Synced 4w ago

READMEChangelog (3)Dependencies (7)Versions (10)Used By (2)

Pages
=====

[](#pages)

[![Packagist](https://camo.githubusercontent.com/d943f7d7da7c2b5a124b6bbbff50f6c4eb72eba7d0552e75195e7aa7ec7274a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6963796265652f6d6f64756c652d70616765732e737667)](https://packagist.org/packages/icybee/module-pages)[![Build Status](https://camo.githubusercontent.com/e0583913fc9ec2cee8dc88fad20a1542bee45dbdd3dfe44486239260440fd084/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4963796265652f6d6f64756c652d70616765732e737667)](http://travis-ci.org/Icybee/module-pages)[![HHVM](https://camo.githubusercontent.com/8ccfb1f34893e4ed705e78a9f87a4ae361c4e380bd7cc1ef4a2de1ee70b81cc7/68747470733a2f2f696d672e736869656c64732e696f2f6868766d2f4963796265652f6d6f64756c652d70616765732e737667)](http://hhvm.h4cc.de/package/Icybee/module-pages)[![Code Quality](https://camo.githubusercontent.com/8fa8f47b18b76d9c3bf6754abda2c0a3c3fb7b3d6e22c8219a00acd89d86f266/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4963796265652f6d6f64756c652d70616765732e737667)](https://scrutinizer-ci.com/g/Icybee/module-pages)[![Code Coverage](https://camo.githubusercontent.com/3a669dd6a9d85d83198af5fc4d6df9c35b11e6fc31e71231e220719e54770695/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4963796265652f6d6f64756c652d70616765732e737667)](https://coveralls.io/r/Icybee/module-pages)[![Downloads](https://camo.githubusercontent.com/e7e08fd3eb39a10164d9ae97aa6262629e73ad848e23a19b87d146389e398052/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6963796265652f6d6f64756c652d70616765732e737667)](https://packagist.org/packages/icybee/module-pages/stats)

The Pages module (`pages`) introduces the "Page" content type to the CMS [Icybee](http://icybee.org). Pages are used to created the website tree, display contents and views. The module provides a request dispatcher to serve the pages it manages.

Blueprint
---------

[](#blueprint)

A blueprint is a simplified data structure representing the relationship between pages. It provides child/parent relations, parent/children relations, an index, and a tree representation. The blueprint can be created from a [Query](http://icanboogie.org/docs/class-ICanBoogie.ActiveRecord.Query.html) or can be obtained from the `pages` model.

The following properties are available:

- `relations`: Child/parent relations, key to key.
- `children`: Parent/children relations, key to key.
- `index`: The blueprint nodes, indexed by key.
- `tree`: The blueprint nodes, nested in a tree.
- `model`: The model associated with the blueprint.

### Obtaining a blueprint from a query

[](#obtaining-a-blueprint-from-a-query)

The following example demonstrates how a blueprint can be obtained from a [Query](http://icanboogie.org/docs/class-ICanBoogie.ActiveRecord.Query.html) instance. Only the `nid` and `parent_id` properties are required to build the bulueprint, but you might want more than that to be useful. In the example, the blueprint is created with the additional properties `slug` and `pattern`:

```
