Thursday 09 July 2009 3:52:40 am
Hi Daniele, you can use view and UserParameters to realize your own google nav. Following example works within the Modules:
$Module = $Params['Module'];
$UserParameters=(isset($Params['UserParameters']))?$Params['UserParameters']:array();
$viewParameters = array( 'offset' => 0, 'limit' => 5 );
$viewParameters = array_merge( $viewParameters, $UserParameters );
$filter = array(
'ClassFilterType' => 'include',
'ClassFilterArray' => array( 'folder' ),
'Limit' => $viewParameters['limit'],
'Offset' => $viewParameters['offset']
);
$folders = eZContentObjectTreeNode::subTreeByNodeID( $filter, 2 );
The view parameters will be set to $Params['UserParameters'] and you can merge em with you default values.
Mit freundlichen Grüßen
Best regards
Max Keil
____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh
|