Ventoy Forums
menu separator - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use —— Ventoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: menu separator (/showthread.php?tid=2842)



menu separator - pled - 04-05-2024

HI,

Is it possible to add a separator to the menu list ? I would like to separate System images from Tools, something like :

Debian Live
Linux Mint Live
- - - -
GParted
Clonezilla
SystemRescue

Is there a way to add this "- - - -" as a separator in the menu ?

NOTE : I did it creating fake ISO file (with genisoimage sw), then using "menu_alias" and "image_list" plugins, but it is not perfect,as the "- - - -" is selectable as a bootable item, which I would not like...

Thanks.


RE: menu separator - Grigo_R0 - 04-25-2024

One way to achieve this is by using the type attribute in the menu entry. If you want an example don't be shy to ask

I think you need an example at least so I've put together this bit you can try and implement:
{
"control": [
{
"VTOY_DEFAULT_SEARCH_ROOT": "/ventoy"
}
],
"menu": [
{
"image": "/path/to/debian_live.iso",
"label": "Debian Live"
},
{
"image": "/path/to/linux_mint_live.iso",
"label": "Linux Mint Live"
},
{
"type": "separator"
},
{
"image": "/path/to/gparted.iso",
"label": "GParted"
},
{
"image": "/path/to/clonezilla.iso",
"label": "Clonezilla"
},
{
"image": "/path/to/systemrescue.iso",
"label": "SystemRescue"
}
]
}