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.