PHPackages                             icybee/module-nodes - 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. icybee/module-nodes

ActiveIcanboogie-module[Utility &amp; Helpers](/categories/utility)

icybee/module-nodes
===================

Implements Nodes

v2.0.0(11y ago)01.4k[1 issues](https://github.com/Icybee/module-nodes/issues)7BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jul 24Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (8)Versions (8)Used By (7)

The Nodes module [![Build Status](https://camo.githubusercontent.com/868ddf6166f942723f2617fad9508894229468dab394375c5edfd9ace9003e3b/68747470733a2f2f7472617669732d63692e6f72672f4963796265652f6d6f64756c652d6e6f6465732e706e673f6272616e63683d322e30)](https://travis-ci.org/Icybee/module-nodes)
===================================================================================================================================================================================================================================================================================================

[](#the-nodes-module-)

The Nodes module (`nodes`) introduces the *Node* content type to the CMS [Icybee](http://icybee.org). Most modules introducing content types inherit from it, this includes the [Contents module](https://github.com/Icybee/module-contents/) (`contents`) as well as the [Pages module](https://github.com/Icybee/module-pages/) module (`pages`).

Provided classes
----------------

[](#provided-classes)

The module provides several classes that might be of interest if you want to write a sub-module, although you might rather create a sub-module of the Contents module (`contents`). Of course, there if the ActiveRecord class and its model class, but also blocks, operations and a view provider.

Event hooks
-----------

[](#event-hooks)

### `ICanBoogie\Modules\System\Modules\ActivateOperation::process`

[](#icanboogiemodulessystemmodulesactivateoperationprocess)

Updates default admin routes.

### `ICanBoogie\Modules\System\Modules\DeactivateOperation::process`

[](#icanboogiemodulessystemmodulesdeactivateoperationprocess)

Updates default admin routes.

### `Icybee\Modules\Users\User::collect_dependencies`

[](#icybeemodulesusersusercollect_dependencies)

Register the nodes depending on the specified record. All node types are registered whatever their module (constructor).

### `ICanBoogie\Modules\Users\DeleteOperation::process:before`

[](#icanboogiemodulesusersdeleteoperationprocessbefore)

Checks if the user being deleted is used by any node. If the user is used and error with the `uid` key is added to the error collector.

Patron markups
--------------

[](#patron-markups)

### `node:navigation`

[](#nodenavigation)

The markup creates a navigation block with links to the list, the next record and the previous record.

```

```

Dashboard panels
----------------

[](#dashboard-panels)

The module provides two dashboard panels. One displays a summary of the number of records per node category. The other displays a list of the last nodes updated by the user.

Patching
--------

[](#patching)

Node slugs are created using the `slugize()` function. The default implementation uses `normalize()`, but one might want to provide a better implementation, such as one removing stop words according the the language of the node.

The following example demonstrates how the `slugize()` function could be patched to use a `remove_stop_words()` function:

```
