2017 © Pedro Peláez
 

icanboogie-module module-views

Allows dynamic data from modules to be displayed in content zones.

image

icybee/module-views

Allows dynamic data from modules to be displayed in content zones.

  • Saturday, April 15, 2017
  • by olvlvl
  • Repository
  • 1 Watchers
  • 1 Stars
  • 613 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Views Build Status

The Views module (views) allows dynamic data from modules to be displayed in content zones., (*1)

Modules usually define three view types: home, list and view. The home view displays a small number of records on an home page. The list view displays a list of records and comes with a pagination to browse through older or newer records. Finally, the view view displays the detail of a record., (*2)

Events

Views were collected

The Icybee\Modules\Views\Collection::collect event of class Collection\CollectEvent is fired after the views defined by the enabled modules have been collected. Event hooks may used this event to alter the collection., (*3)

Records fetched by the provided are altered

The Icybee\Modules\Views\View::alter_records:before event of class View\BeforeAlterRecords is fired before the records fetched by the provider are altered by the alter_records method of the view. The Icybee\Modules\Views\View::alter_records event of class View\AlterRecords is fired after the alter_records method was called. Event hooks may use these events to alter the records., (*4)

Events callbacks

Icybee\Modules\Pages\SaveOperation::process

Updates the target page of a view., (*5)

Prototype methods

Icybee\Modules\Nodes\Node::url

Returns the relative URL of a record for the specified view type., (*6)

Icybee\Modules\Nodes\Node::absolute_url

Returns the URL of a record for the specified view type., (*7)

Icybee\Modules\Nodes\Node::get_url

Returns the relative URL of a record., (*8)

Icybee\Modules\Node::get_absolute_url

Returns the URL of a record., (*9)

Icybee\Modules\Sites\Site::resolve_view_target

Returns the target page associated with a view., (*10)

Icybee\Modules\Sites\Site::resolve_view_url

Returns the URL of a view., (*11)

ICanBoogie\Core::get_views

Returns the view collection., (*12)

Markups

call-view

Displays a view., (*13)

<h2>Last articles</h2>
<p:call-view name="articles/home" />

Requirement

The package requires PHP 5.5 or later., (*14)

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:, (*15)

$ composer require icybee/module-views

Note: This module is part of the modules required by Icybee., (*16)

Cloning the repository

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

$ git clone https://github.com/Icybee/module-views views

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

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

Build Status, (*20)

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

License

The module is licensed under the New BSD License - See the LICENSE file for details., (*22)

The Versions

15/04 2017

4.0.x-dev

4.0.9999999.9999999-dev

Allows dynamic data from modules to be displayed in content zones.

  Sources   Download

BSD-3-Clause

The Requires

 

view

24/05 2016

dev-master

9999999-dev

Allows dynamic data from modules to be displayed in content zones.

  Sources   Download

BSD-3-Clause

The Requires

 

view

24/05 2016

v3.0.0

3.0.0.0

Allows dynamic data from modules to be displayed in content zones.

  Sources   Download

BSD-3-Clause

The Requires

 

view

28/08 2015

v2.1.0

2.1.0.0

Allows dynamic data from modules to be displayed in content zones.

  Sources   Download

BSD-3-Clause

The Requires

 

view

30/03 2014

v2.0.0

2.0.0.0

Allows dynamic data from modules to be displayed in content zones.

  Sources   Download

BSD-3-Clause

The Requires

 

view