Manually generated menu no longer works

Due to the need to pass variables from menu items into applications, I have unfortunately never been able to use the GUI to create menus, but instead have to use the macros sc_appmenu_create and sc_appmenu_add_item.

Sadly, these no longer work in version 9. I configure the menu using macros, however it never renders on the front end, just completely missing.

I now need an anger management class.

Has anyone found a workaround for this problem yet?

Thanks

Hello rperrett,

I cannot tell you anything about manually generated menus, but I had the request to pass parameters via the SC menu app in the past.

Here is the solution for this way:

Add code into the onExecute event of the menu application.
There you select which menu item has been choosen by the user and set the parameters as global variables.

Sample:

$item = {sc_menu_item};      // Get the id of the clicked menu item

switch($item)
{
    case "item_137":     // If the irtem # is 137 ...
        [flag_admin_search_solr] = 1;     // set the variables for the target application
        [reseller_id] = 1;
        break;

    default: 
        [flag_admin_search_solr] = 0;    // for all other menu items set ...
}

I hope this will help to solve your problem using the traditional Scriptcase way.

Sincerely

Gunter

That looks like an excellent solution. Thank you!