Menu head name linking

Discussion in 'Installation/Configuration' started by Steffan, Mar 8, 2024.

  1. Steffan

    Steffan Member

    Hello im using Softaculous it is adding a menu in the extra parts
    But i just noticed ( and i think this is going on for several years...
    When clicking on the menu name softacoulos is opening inline and then it is not working.
    Is there a way to disable the menu name or to add the link to the menu head name.

    Code:
    <?php
            // Created by Softaculous Installer at 2022-01-22 12:47:42
            $items[] = array( 'title'  => 'Softaculous',
                    'target'  => '_blank',
                    'link' => (!empty($_SERVER['HTTPS']) ? 'https://' : 'http://').((empty($_SERVER['SERVER_NAME']) || $_SERVER['SERVER_NAME'] == '_') ? $_SERVER['SERVER_ADDR'] : $_SERVER['SERVER_NAME']).':8000/softaculous');
    
            $module['nav'][] = array( 'title' => 'Auto Installer',
                    'open'  => 1,
                    'items' => $items);
    
            unset($items);
    
    ?>
    
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Delete the menu file that Softaculous added.

    Do you mean adding a menu in the top menu and not the left menu? That's impossible, as this requires that the software must be a ISPConfig module, which Softaculous is not.
     
  3. Steffan

    Steffan Member

    no what i mean is that on the left i now have:
    A menu called:
    Auto Installer

    And in thet menu there is a link Softaculous.

    that is how i want it, but clicking on Auto Installer loads Softaculous in the frame of ispconfig. (and that is not working)
    And clicking on Softtaculous it opens a new page that works so i want to disable the menu link or add the correct link to the config

    So is there a way to change this part:

    Code:
    $module['nav'][] = array( 'title' => 'Auto Installer',
                    'open'  => 1,
                    'items' => $items);
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    That's not configurable; the link is always set to the first item. But I can add an issue to the bug tracker to make this configurable or use the target of the first link as well.
     
  5. Steffan

    Steffan Member

    oke but the first item is opening a new page, and the head is not so looks like something is going wrong.
    Would be nice if this can be changed.
     

Share This Page