how does the google indexing work ?

Author Message

John Mina

Monday 26 April 2004 1:21:46 pm

Dear Sirs,
I want to know how to use the google.tpl, in a new template i am creating for viewing special folder
Any Clue please

Bruce Morrison

Monday 26 April 2004 6:14:11 pm

Hi John

google.tpl is used to provide "google like" pagination. See http://ez.no/ez_publish/documentation/customization/custom_design/pagination

Cheers
Bruce http://www.designit.com.au/

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

John Mina

Tuesday 27 April 2004 3:29:36 am

HI Bruce ,
Thaks for the reply
but Unfortunatly wht i wanted to ask about is the other side of the process, how to connect a page and make it able to use this tpl

I see there is aform that is made and a lot fo other variables, but i dn't know wht is important and wht is not
iam relaly lost, have you got any idea bout that ?
Sicnerely John Mina

Bjørn Kaarstein

Tuesday 27 April 2004 3:42:45 am

This is a sample from the ez-course I attended which works fine.
It fetches three items at a time, and then applies the google navigator if there are more than three items.

let objectCount=fetch('content','list_count', hash(parent_node_id, $node.node_id,
						'class_filter_type', include,
						'class_filter_array', array(2,8)))}  

{section loop=fetch('content', 'list', hash('parent_node_id', $node.node_id,
					'limit',3,
					'offset',$view_parameters.offset,
					'sort_by',$node.sort_array,
					'class_filter_type', include,
					'class_filter_array', array(2,8)))}

{node_view_gui view=element content_node=$:item}

<br />
{/section}

{include uri='design:navigator/google.tpl'
		item_count=$objectCount
		view_parameters=$view_parameters
		item_limit=3
		page_uri=concat('/content/view/full/', $node.node_id)}



Regards Bjørn

John Mina

Tuesday 27 April 2004 6:08:17 am

Thanks
BUt not able to implement it either
:(

Paul Forsyth

Tuesday 27 April 2004 6:14:36 am

Take a look at the search template ez use. It has an example of the google template in action.

paul

--
http://www.visionwt.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:20:12
Script start
Timing: Jan 18 2025 16:20:12
Module start 'layout'
Timing: Jan 18 2025 16:20:12
Module start 'content'
Timing: Jan 18 2025 16:20:13
Module end 'content'
Timing: Jan 18 2025 16:20:13
Script end

Main resources:

Total runtime1.1399 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.0547152.6250
Module start 'layout' 0.00700.0031 741.679739.4453
Module start 'content' 0.01011.1282 781.1250635.9609
Module end 'content' 1.13830.0016 1,417.085912.1563
Script end 1.1399  1,429.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3635160.0003
Check MTime0.00150.1311160.0001
Mysql Total
Database connection0.00110.092910.0011
Mysqli_queries1.076994.4713700.0154
Looping result0.00080.0689680.0000
Template Total1.092795.920.5463
Template load0.00400.352120.0020
Template processing1.088695.501120.5443
Template load and register function0.00020.019610.0002
states
state_id_array0.00150.134710.0015
state_identifier_array0.00130.111820.0006
Override
Cache load0.00260.2252330.0001
Sytem overhead
Fetch class attribute can translate value0.00100.084240.0002
Fetch class attribute name0.00140.124270.0002
XML
Image XML parsing0.00090.075840.0002
class_abstraction
Instantiating content class attribute0.00000.001270.0000
General
dbfile0.00120.1075160.0001
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs