Ventoy Forums
【Solved】How to arrange the rows in menu_alias in the right order - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy Plugin (https://forums.ventoy.net/forumdisplay.php?fid=3)
+--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4)
+--- Thread: 【Solved】How to arrange the rows in menu_alias in the right order (/showthread.php?tid=1816)



【Solved】How to arrange the rows in menu_alias in the right order - BKPB - 09-30-2021

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/14f7ee179bb0a1a3f3b28b77722cf264.png


RE: How to arrange the rows in menu_alias in the right order - longpanda - 09-30-2021

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.


RE: How to arrange the rows in menu_alias in the right order - longpanda - 09-30-2021

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).


RE: How to arrange the rows in menu_alias in the right order - BKPB - 09-30-2021

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.


RE: How to arrange the rows in menu_alias in the right order - longpanda - 09-30-2021

Use image_list with menu_alias


RE: How to arrange the rows in menu_alias in the right order - longpanda - 09-30-2021

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"
        }
    ]
}



RE: How to arrange the rows in menu_alias in the right order - longpanda - 09-30-2021

Result:


RE: How to arrange the rows in menu_alias in the right order - BKPB - 09-30-2021

Thank you very much !!!!!!!!!