3
* This file implements the "Simple Page list" widget
3
* This file implements the "Page List" widget
5
* To call this widget directly in your template (bypassing containers), use the
6
* following code modified with any params you need to customize:
8
* // display the Page List widget
9
* template_widget( array(
10
* 'widget' => 'page_list',
11
* 'widget_title' => 'Pages', // default shown, customize as desired
15
* This widget is an extension of the "Universal Item List" widget. Some of it's
16
* params are set for you, 4 params are available via this widget call:
17
* - 'item_group_by' => default is 'none' which means no grouping. Optionally you
18
* can set this to 'chapter' for grouping by category.
19
* - 'order_by' => default is 'datestart' which orders your items by date. See
20
* {@link get_available_sort_options()} for available options.
21
* - 'order_dir' => default is 'DESC' which means descending order. Optionally you
22
* can set this to 'ASC for ascending order.
23
* - 'limit' => default is 20, which means no more than 20 items will be shown.
25
* @see ComponentWidget::init_display()
5
26
* @author {@link http://wonderwinds.com/ Ed Bennett}
6
27
* @author {@link http://fplanque.net/ Francois PLANQUE}
7
28
* @copyright (c) 2009 by {@link http://quamplures.net/ the Quam Plures project}
11
32
if(!defined('QP_MAIN_INIT')) die('fail');
13
$wiCache = get_Cache('WidgetCache');
34
$wiCache = get_Cache( 'WidgetCache' );
14
35
$wiCache->load_widget( 'item_list' );
17
38
* page_list_Widget class
20
42
class page_list_Widget extends item_list_Widget