Forums / Setup & design / Menu disappears click add to basket

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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!