2017 © Pedro Peláez
 

icanboogie-module module-nodes

Implements Nodes

image

icybee/module-nodes

Implements Nodes

  • Saturday, April 15, 2017
  • by olvlvl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,374 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

The Nodes module Build Status

The Nodes module (nodes) introduces the Node content type to the CMS Icybee. Most modules introducing content types inherit from it, this includes the Contents module (contents) as well as the Pages module (pages)., (*1)

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., (*2)

Event hooks

ICanBoogie\Modules\System\Modules\ActivateOperation::process

Updates default admin routes., (*3)

ICanBoogie\Modules\System\Modules\DeactivateOperation::process

Updates default admin routes., (*4)

Icybee\Modules\Users\User::collect_dependencies

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

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

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., (*6)

Patron markups

node:navigation

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

<p:node:navigation />

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., (*8)

Patching

Node titles are converted into slugs using the slugize() method of nodes. This method is actually a prototype method and as such can be overridden. The default method uses normalize(), but a third party might want to provide a better implementation, such as one removing stop words according the the language of the node., (*9)

<?php

Icybee\Modules\Nodes\Helpers::patch('slugize', function($str, $language=null) {

    return \ICanBoogie\normalize(remove_stop_words($str, $language));

});

Requirement

The package requires PHP 5.4 or later., (*10)

Installation

The recommended way to install this package is through Composer. Create a composer.json file and run php composer.phar install command to install it:, (*11)

{
    "minimum-stability": "dev",
    "require":
    {
        "icybee/module-nodes": "2.x"
    }
}

This package is part of the packages required by Icybee., (*12)

Cloning the repository

The package is available on GitHub, its repository can be cloned with the following command line:, (*13)

$ git clone git://github.com/Icybee/module-nodes.git nodes

Documentation

The package is documented as part of the Icybee CMS documentation. The documentation for the package and its dependencies can be generated with the make doc command. The documentation is generated in the docs directory using ApiGen. The package directory can later by cleaned with the make clean command., (*14)

Testing

The test suite is ran with the make test command. Composer is automatically installed as well as all the dependencies required to run the suite. The package directory can later be cleaned with the make clean command., (*15)

The package is continuously tested by Travis CI., (*16)

Build Status, (*17)

License

This package is licensed under the New BSD License - See the LICENSE file for details., (*18)

The Versions

25/03 2014

1.0.x-dev

1.0.9999999.9999999-dev

Implements Nodes

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

node

24/07 2013