For setting of the "advanced search" button

Author Message

nga patel

Monday 25 April 2005 10:21:04 am

In my side in advenced search, I waant to reset my all main menu items in one dropdown box and in all sub menu items are in the other dropdown box, now when any one select the main item from first dropdown box according to that in second dropdown box, the submenu items should be appear, but I could not do this thing.
Under these dropdown boxes I had put the button called "OK" is not working after selecting the items.
Could any body give me any hint.
Thanks

Łukasz Serwatka

Monday 25 April 2005 11:32:27 pm

Hi,

Do you have any code example to show?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

nga patel

Tuesday 26 April 2005 12:59:30 am

<form name="fullview" method="post" action="/content/action">

<div class="block">

<select name="ContentObjectAttribute_data_option_value">
<option value="0">Thémes</option>
<option value="1">Sortir</option>
<option value="2">Se looker</option>
<option value="3">Etre bien</option>
<option value="4">Chez soi</option>
</select>
</div>
</form>

<form name="fullview" method="post" action="/content/action">

<div class="block">

<select name="ContentObjectAttribute_data_option_value">
<option value="0">Rubriques</option>

</select>
</div>
</form>

In the second part of "Rubriques" is in fact the first submenu under Themes, Selooker,.. and so on. And then same way I had set, for the third and forth level of Sub menu and then "OK" button, but I don't know how to set them to work.

nga patel

Tuesday 26 April 2005 7:56:19 am

I'm getting tired,can any body tell me how to implement it?

kracker (the)

Tuesday 26 April 2005 8:41:42 am

nga,

While I can easily understand and relate to your frustration it strikes me as counter productive ask about a fairly detailed solution, yet say so little.

I can write books about just about any topic, especially the onces I'm working on, try to flush out the thought process through your posts, talking your way through the problem, not waiting solely for a reply before sharing the required details, thoughts, end solutions used ... <i>I suggest writing ... more</i>, writing more can have the effect of painting a canvas vs spitting on it.

It just comes off as a bit demanding, especially considering the solution lies a chunk of custom development or re evaluating just how much of a requirement this features is to the user experience ...

From what I've read of what you describe is a mix of client side and server side custom forms / select menus / and client side scripting to alter the 2nd select menu's contents (items) when a user selects an item from the 1st select menu.

It's not impossible but you have to work the process through to it's completion. Like looking up a word you are not familiar with up in the dictionary.

I don't believe eZ publish offers an abstracted solution to this "generation" level of interactive web applications, or web app linked option lists ... by default.

I am fairly sure I see where your going here, but the solution lies in adding the dependant client side script (javascript) into your advanced search template override than finding an elusive eZ publish secret.

anything is possible,
//kracker

dr katz : bakery ben

Member since: 2001.07.13 || http://ezpedia.se7enx.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 19 2025 00:55:21
Script start
Timing: Jan 19 2025 00:55:21
Module start 'layout'
Timing: Jan 19 2025 00:55:21
Module start 'content'
Timing: Jan 19 2025 00:55:22
Module end 'content'
Timing: Jan 19 2025 00:55:22
Script end

Main resources:

Total runtime0.8621 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 589.2891152.6406
Module start 'layout' 0.00500.0030 741.929739.4766
Module start 'content' 0.00790.8529 781.4063611.4766
Module end 'content' 0.86080.0013 1,392.882816.1250
Script end 0.8621  1,409.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3781160.0002
Check MTime0.00140.1612160.0001
Mysql Total
Database connection0.00080.087810.0008
Mysqli_queries0.803393.1738650.0124
Looping result0.00060.0699630.0000
Template Total0.827496.020.4137
Template load0.00190.224420.0010
Template processing0.825495.743820.4127
Template load and register function0.00010.017310.0001
states
state_id_array0.00130.145610.0013
state_identifier_array0.00070.080320.0003
Override
Cache load0.00170.1939480.0000
Sytem overhead
Fetch class attribute can translate value0.00050.055130.0002
Fetch class attribute name0.00130.152070.0002
XML
Image XML parsing0.00160.182130.0005
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00260.2968260.0001
String conversion0.00000.000940.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs