Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    How do you change the pull-down menu around?

    Scheduled Pinned Locked Moved webGUI
    5 Posts 2 Posters 2.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      Cino
      last edited by

      I would like to change the order of some of the items under the service pull down.. How would I go about that? I've attach a pic so you have an idea what i want to do
      menu.JPG
      menu.JPG_thumb

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        The menu is built by /usr/local/etc/www/fbegin.inc

        The system default options are in there, and then the ones collected from packages are at the end, but those are pulled dynamically.

        You might look at the same code from the 2.0 branch, it sorts the whole menu alphabetically.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • C
          Cino
          last edited by

          thanks!  How does it pull them dynamically? They are always in order from which i install the packages. Wondering if I could move the order they are in from the file it reads when it makes the menu

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            I think it just pulls the list of installed packages from the config (The $config variable, it doesn't read the file every time)

            Not sure those can be reordered easily, short of hand editing the config.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • C
              Cino
              last edited by

              Thanks again! I got it now.. I move the items that start with

              <menu>also i was able to change what section they are in my changing the field after

              I only have a couple i want to move around so it shouldn't be a big deal. Change them in the file then reboot the system
              </menu>

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.