Search stats and tag cloud

Author Message

laurent le cadet

Wednesday 10 October 2007 2:43:30 am

Hi,

I would like to reuse the search stats functionnalities for a tag cloud.
I pointed to design/admin/templates/search/stats.tpl but I don't know from where the variable $most_frequent_phrase_array comes.

Any hint?

Laurent.

Pascal Specht

Wednesday 10 October 2007 3:51:29 am

Hi Laurent,

Did you have a look at: \kernel\search\stats.php

$mostFrequentPhraseArray =& eZSearchLog::mostFrequentPhraseArray( $viewParameters );

[...]

$tpl->setVariable( "most_frequent_phrase_array", $mostFrequentPhraseArray );

Pascal

laurent le cadet

Wednesday 10 October 2007 7:33:24 am

hum well,

It appears that users can access this search table while using search/stats url.
My pupose is to use that as a include template...

I don't know how to do that :( (extension ?)

Any help will be welcome.

Laurent

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 19 2025 04:40:07
Script start
Timing: Jan 19 2025 04:40:07
Module start 'layout'
Timing: Jan 19 2025 04:40:07
Module start 'content'
Timing: Jan 19 2025 04:40:07
Module end 'content'
Timing: Jan 19 2025 04:40:07
Script end

Main resources:

Total runtime0.0147 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.1563152.6250
Module start 'layout' 0.00590.0027 741.781339.4453
Module start 'content' 0.00860.0038 781.226689.3203
Module end 'content' 0.01230.0023 870.546934.3047
Script end 0.0146  904.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002114.5863140.0002
Check MTime0.00107.0370140.0001
Mysql Total
Database connection0.00074.768310.0007
Mysqli_queries0.003121.416830.0010
Looping result0.00000.081310.0000
Template Total0.002013.410.0020
Template load0.00128.123410.0012
Template processing0.00085.204210.0008
Override
Cache load0.00085.654710.0008
General
dbfile0.00031.860580.0000
String conversion0.00000.047240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs