Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
【Solved】How to arrange the rows in menu_alias in the right order
#1
solved 
How to arrange the rows in menu_alias in the order I need

Code:
"menu_alias":[
        {
            "image":"/ISO/Windows_7_Pro_x86_x64_11.08.2021.iso",
            "alias":"Windows 7       Pro    x86 x64                    11.08.2021"
        },
        {
            "image":"/ISO/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
            "alias":"Windows 7 & 10  Pro    x86 x64                    30.05.2021"
        },
        {
            "image":"/WinPE/WinPE_Sergei_Strelec_x86_x64_19.07.2021.iso",
            "alias":"WinPE Sergei Strelec   x86 x64                    19.07.2021"
        },
        {
            "image":"/WinPE/WinPE_Super.iso",
            "alias":"WinPE Super"
        },
        {
            "image":"/Memtest/Memtest86+_4.3.7 _& _7.5.0.iso",
            "alias":"Memtest        4.3.7  &  7.5.0"
        }
    ]
}

The boot menu is not in the same order as in "menu_alias"
http://i2.paste.pics/14f7ee179bb0a1a3f3b...2cf264.png
Reply
#2
The order of the menu_alias doesn't make sense.
The boot menu is ordered by the ISO file name alphabetically.
The boot menu can not be sorted by the menu_alias string, it's not supported.
Reply
#3
You can use image_list plugin https://www.ventoy.net/en/plugin_imagelist.html
Then the order of the boot menu can be customized as you want. (Though it may be a little cumbersome when you have many iso files).
Reply
#4
solved 
I've done this before, but only the .iso name can be displayed there.

"image_list": [
    "/ISO/Windows 7 & 10  Pro    x86 x64                    30.05.2021          .iso",
    "/ISO/Windows 7      Pro    x86 x64                    12.05.2021          .iso",
    "/WinPE/WinPE Super                                                          .iso",
    "/WinPE/WinPE Sergei Strelec  x86 x64                    19.07.2021            .iso"

I wanted to have for example: xxx.iso , but so that it appears in the boot menu with a different name.
It turns out that this cannot be achieved in image_list ?

Is a name with spaces allowed ? Is this normal ?  For example: Windows 7 & 10  Pro    x86 x64                    30.05.2021          .iso

Thanks for the help.
Reply
#5
Use image_list with menu_alias
Reply
#6
Code:
{
    "image_list": [
        "/ISO/Windows_7_Pro_x86_x64_11.08.2021.iso",
        "/ISO/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
        "/WinPE/WinPE_Sergei_Strelec_x86_x64_19.07.2021.iso",
        "/WinPE/WinPE_Super.iso",
        "/Memtest/Memtest86+_4.3.7 _& _7.5.0.iso"
    ],

    "menu_alias":[
        {
            "image":"/ISO/Windows_7_Pro_x86_x64_11.08.2021.iso",
            "alias":"Windows 7      Pro    x86 x64                    11.08.2021"
        },
        {
            "image":"/ISO/Windows_7_&_10_Pro_x86_x64_30.05.2021.iso",
            "alias":"Windows 7 & 10  Pro    x86 x64                    30.05.2021"
        },
        {
            "image":"/WinPE/WinPE_Sergei_Strelec_x86_x64_19.07.2021.iso",
            "alias":"WinPE Sergei Strelec  x86 x64                    19.07.2021"
        },
        {
            "image":"/WinPE/WinPE_Super.iso",
            "alias":"WinPE Super"
        },
        {
            "image":"/Memtest/Memtest86+_4.3.7 _& _7.5.0.iso",
            "alias":"Memtest        4.3.7  &  7.5.0"
        }
    ]
}
Reply
#7
Result:


Attached Files Thumbnail(s)
   
Reply
#8
Thank you very much !!!!!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)