Search

Author Message

justin kazadi

Wednesday 07 May 2008 7:19:06 am

Hello all,

I don't know why the search didn't work in my template. To have search i have write this:
"
<form action={"/content/search"|ezurl}>
<label for="searchtext" class="hide">Recherche:</label>
{if eq( $ui_context, 'edit' )}
<input id="searchtext" name="SearchText" type="text" value="" size="11" disabled="disabled" />
<input id="searchbutton" class="button-disabled" type="submit" value="{'Search'|i18n('design/ezwebin/pagelayout')}" alt="Submit" disabled="disabled" />
{else}
<input id="searchtext" name="SearchText" type="text" value="" size="14" />

<!-- supprimer<input id="searchbutton" class="button"
type="submit" value="{'Search'|i18n('design/ezwebin/pagelayout')}" alt="Submit" />
-->
<input id="searchbutton" class="button"type="submit" value="ok"/>
{if eq( $ui_context, 'browse' )}
<input name="Mode" type="hidden" value="browse" />
{/if}
{/if}
</form>

"
excuse me for my bad english.
Thanks in advance.

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

Abdelkader RHOUATI

Wednesday 07 May 2008 7:31:12 am

Hi,

Note : if input is disabled, he will not be sended in your form, may be that's your problem,
try adding an input hidden!
tks

Abdelkader

Abdelkader RHOUATI

Blog (french) : http://arhouati.com
----
Extension arh_jdebug : EzDebug using jquery

justin kazadi

Thursday 08 May 2008 2:22:40 am

hi,
i have put disabled=enabled but the search don't work. and i have try enabled=enabled but nothing special.

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

André R.

Thursday 08 May 2008 2:30:34 am

there is nothing called disabled="enabled" in html / xhtml.
But that is not your bug ( ref: "{if eq( $ui_context, 'edit' )}" code means that the search will only be disabled when you edit something).

your bug might be lack of whitespace between class and type 'class="button"type="submit"'!
Alternatively you are running fastcgi and need to use ' method="post"' on your form!

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

justin kazadi

Thursday 08 May 2008 4:32:18 am

hi,
i have done what you have says.now i have this :

<form action={"/content/search"|ezurl} method="post">
<label for="searchtext" class="hide">Recherche:</label>
{if eq( $ui_context, 'edit' )}

<input id="searchtext" name="SearchText" type="text" value="" size="11" disabled="disabled" />
<input id="searchbutton" class="button-disabled" type="submit"
value="{'Search'|i18n('design/ezwebin/pagelayout')}" alt="Submit" disabled="disabled" />
{else}
<input id="searchtext" name="SearchText" type="text" value="" size="14" />

<input id="searchbutton" class="button"
type="submit" value="{'Search'|i18n('design/ezwebin/pagelayout')}" alt="Submit" />

{if eq( $ui_context, 'browse' )}
<input name="Mode" type="hidden" value="browse" />
{/if}
{/if}
</form>
but the search didn't work.

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

André R.

Thursday 08 May 2008 4:55:15 am

Works for me (when I past it into pagelayout).

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

justin kazadi

Thursday 08 May 2008 5:32:36 am

hi,
thanks you andré R for all. i want to know if search (and path)works only in pagelayout? it not possible to use it in a frontpage?.In my web site my pagelayout contains this:
"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$site.http_equiv.Content-language|wash}" lang="{$site.http_equiv.Content-language|wash}">

<head>

<style type="text/css">
@import url({"stylesheets/soukstyle.css"|ezdesign(no)});
</style>

<title>kazadi dans le projet soukafrika</title>
</head>
<body><!--debut body-->
{$module_result.content}

</body><!--fin body-->
</html>
"
all the contents are in a frontpage (that i have overloaded).i think it the reason of this behavior.

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

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 20 2025 17:30:40
Script start
Timing: Jan 20 2025 17:30:40
Module start 'layout'
Timing: Jan 20 2025 17:30:40
Module start 'content'
Timing: Jan 20 2025 17:30:42
Module end 'content'
Timing: Jan 20 2025 17:30:42
Script end

Main resources:

Total runtime1.1818 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 587.7813151.1953
Module start 'layout' 0.00820.0042 738.976636.5938
Module start 'content' 0.01241.1685 775.5703676.8906
Module end 'content' 1.18100.0008 1,452.460919.8984
Script end 1.1818  1,472.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2843160.0002
Check MTime0.00140.1173160.0001
Mysql Total
Database connection0.00240.203510.0024
Mysqli_queries1.106993.6661710.0156
Looping result0.00060.0497690.0000
Template Total1.102693.320.5513
Template load0.00210.174620.0010
Template processing1.100593.121920.5503
Template load and register function0.00010.009010.0001
states
state_id_array0.00090.078210.0009
state_identifier_array0.00200.168720.0010
Override
Cache load0.00190.1600900.0000
Sytem overhead
Fetch class attribute can translate value0.00070.057530.0002
Fetch class attribute name0.00160.1327100.0002
XML
Image XML parsing0.00140.118430.0005
class_abstraction
Instantiating content class attribute0.00000.0024140.0000
General
dbfile0.00100.0824290.0000
String conversion0.00000.001040.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
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs