[HOW TO] link for search

Author Message

Yannick Komotir

Tuesday 03 June 2008 3:01:00 am

[sorry for mistakes i'am francophone]

Hi,

I understand a lot of things on ez, but links still retain me!
i want just to know how create a link who going to my custom search.tpl with my prédefinies criterias;
a simple, I want the user clicks on a link and it has the last ten most read articles by examples.


A good understanding
Yannick

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

justin kazadi

Tuesday 10 June 2008 5:50:44 am

hi yannick,
you have says that you want a link towards the search template.for this you can do this:

<a href={"/content/search"|ezurl}>search</a>

in your pagelayout.tpl.

then your search template will be called.

"God helps those who help themselves." -- Benjamin Franklin

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Yannick Komotir

Friday 13 June 2008 7:56:58 am

Hi Justin,

Thank for your reply but i want to do a custom search with some criterias

Yannick_

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

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 19:23:22
Script start
Timing: Jan 18 2025 19:23:22
Module start 'layout'
Timing: Jan 18 2025 19:23:22
Module start 'content'
Timing: Jan 18 2025 19:23:23
Module end 'content'
Timing: Jan 18 2025 19:23:23
Script end

Main resources:

Total runtime0.8907 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0234152.6250
Module start 'layout' 0.00630.0061 741.648439.4297
Module start 'content' 0.01240.8769 781.0781540.6016
Module end 'content' 0.88930.0013 1,321.679712.1797
Script end 0.8906  1,333.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3630160.0002
Check MTime0.00130.1467160.0001
Mysql Total
Database connection0.00130.142410.0013
Mysqli_queries0.836693.9331570.0147
Looping result0.00060.0650550.0000
Template Total0.848495.320.4242
Template load0.00220.244320.0011
Template processing0.846295.007320.4231
Template load and register function0.00010.009710.0001
states
state_id_array0.00150.172210.0015
state_identifier_array0.00130.140920.0006
Override
Cache load0.00190.2077250.0001
Sytem overhead
Fetch class attribute can translate value0.00090.097920.0004
Fetch class attribute name0.00120.138150.0002
XML
Image XML parsing0.00100.115720.0005
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00130.1429220.0001
String conversion0.00000.001240.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 18
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs