Forums / Developer / How to make page navigation like google navigator?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

How to make page navigation like google navigator?

Author Message

Daniele Nocentini

Thursday 09 July 2009 2:19:18 am

I have a db tables with many records and I want to make a page navigation for show limited number of records.
How can I use google navigator inside my php code of my extension?

thanks.

Antica Bottega Digitale srl
http://www.abd.it

Max Keil

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

H-Works Agency

Wednesday 15 July 2009 3:27:10 am

A template "navigator/google.tpl" already exists in default ezp distrib.

EZP is Great

Max Keil

Wednesday 15 July 2009 3:38:34 am

I agree!

The code above shows how to support the google navigation within the PHP. You cannot use the googlenavigator template if your Module/View do not support it.

Mit freundlichen Grüßen
Best regards

Max Keil

____________________________________________________________
eZ Publish Gold Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh