Menu disappears click add to basket

Author Message

Martin Ulrich

Monday 04 October 2004 5:17:44 am

My left menu starts at a subfolder 2, 5)
It works ok. But if I click on "Add to basket" the menu disappears.
Except I write 0, 5), (but than its the wrong startfolder)

I assume it's because there is no "$module_result.node_id," if addtobasket Action is done.

How can I set this?

{let  	depth=1
	docs=treemenu( $module_result.path,
        $module_result.node_id,
        array( 1 ),
        2, 5) }

Does anyone solve this problem?

thanks verymuch :-))

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Gunnstein Lye

Monday 11 October 2004 5:08:16 am

I think you can use the following logic: If $module_result.node_id is set, use that, else use a specified node (2, for example). Something like this:

{let depth=1
     docs=treemenu( $module_result.path,
                    first_set( $module_result.node_id, 2 ),
                    array( 1 ),
                    2, 5)}

Martin Ulrich

Monday 11 October 2004 5:53:21 am

Thank you! I tried, but it works only partial. Correct leftmenu is shown in basketview, if I write:

{let docs=treemenu( $module_result.path,
                    first_set( $module_result.node_id, 109 ),
                    array( 1 ),
                    0, 2 )
                    depth=1}

But for correct view of all other content I need to write:

{let docs=treemenu( $module_result.path,
                    first_set( $module_result.node_id, 109 ),
                    array( 1 ),
                    2, 2 )
                    depth=1}

(thinking of another solution: If I would know how to define a separate pagelayout for basket, I could define a new menu with separate configuration ...)

ok, looking forward, ! thanks :-)

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

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 31 2025 01:17:46
Script start
Timing: Jan 31 2025 01:17:46
Module start 'layout'
Timing: Jan 31 2025 01:17:46
Module start 'content'
Timing: Jan 31 2025 01:17:46
Module end 'content'
Timing: Jan 31 2025 01:17:46
Script end

Main resources:

Total runtime0.0247 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.2500151.2266
Module start 'layout' 0.00610.0045 739.4766220.7031
Module start 'content' 0.01060.0125 960.1797997.9141
Module end 'content' 0.02310.0016 1,958.093833.9922
Script end 0.0247  1,992.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002911.5750140.0002
Check MTime0.00104.1767140.0001
Mysql Total
Database connection0.00083.339210.0008
Mysqli_queries0.003213.088030.0011
Looping result0.00000.140710.0000
Template Total0.00124.910.0012
Template load0.00093.718910.0009
Template processing0.00031.160310.0003
Override
Cache load0.00062.413110.0006
General
dbfile0.00135.157780.0002
String conversion0.00000.039540.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