Ventoy Forums
Icon Menu Class - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy Plugin —— Ventoy 插件 (https://forums.ventoy.net/forumdisplay.php?fid=3)
+--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4)
+--- Thread: Icon Menu Class (/showthread.php?tid=394)



Icon Menu Class - Joh76530 - 07-22-2020

Hello all!

New in the Ventoy community, I would like to say that it is a very beautiful project which I am sure will appeal to a good number of technicians! Now I find myself confronted with a "small" problem which I am sure will be easily resolved with your help.

Indeed, as such I would like to thank @longpanda for its help and responsiveness.

Here is my code, if you could tell me if there was an error.



Code:
{
    "theme": {
        "file": "/ventoy/vimix/theme.txt",
        "gfxmode": "1920x1080",
        "ventoy_left": "5%",
        "ventoy_top": "95%",
        "ventoy_color": "#000000ff"
    },
   
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/ISOs" }

    ],
    
     "menu_alias": [
        {
            "image": "/ISOs/ISOs_Live/Acronis.iso",
            "alias": "Acronis 2020"
        },
        {
            "image": "/ISOs/ISOs_Live/clonezilla.iso",
            "alias": "Clonezilla"
        },       
        {
            "image": "/ISOs/ISOs_Live/gparted.iso",
            "alias": "Gparted"
        },
        {
            "image": "/ISOs/ISOs_Live/Hirens.iso",
            "alias": "Hirens 10.6"
        },
        {
            "image": "/ISOs/ISOs_Live/pwhe.iso",
            "alias": "Partition Wizard"
        },
        {
            "image": "/ISOs/ISOs_Live/gparted.iso",
            "alias": "Gparted"
        },
        {
            "image": "/ISOs/ISOs_Microsoft/Windows_Serveur/SRV_2016.ISO",
            "alias": "Windows Serveur 2016"
        },
        {
            "image": "/ISOs/ISOs_Microsoft/Windows_10_Pro/W10P_1909.iso",
            "alias": "Windows 10 Pro (1909)"
        },
        {
            "dir": "/ISOs/ISOs_Microsoft",
            "alias": "Déploiement Miscrosoft"
        },
        {    
            "dir": "/ISOs/ISOs_Live",
            "alias": "Live CD de Dépannage"
        },
        {    
            "dir": "/ISOs/ISOs_Microsoft/Windows_10_Pro",
            "alias": "Installation Windows 10"
        },    
        {    
            "dir": "/ISOs/ISOs_Microsoft/Windows_Serveur",
            "alias": "Installation Windows Serveur"
        }
    ],
    
    "menu_class": [
        {
            "key": "Acronis"
            "class": "Acronis"
        },
        {
            "key": "Clonezilla"
            "class": "Clonezilla"
        },
        {
            "key": "gparted"
            "class": "gparted"
        },
        {
            "key": "Hirens"
            "class": "Hirens"
        },
        {
            "key": "pwhe"
            "class": "pwhe"
        },
        {
            "key": "W10P_1909"
            "class": "W10P_1909"
        },
        {
            "key": "SRV_2016"
            "class": "SRV_2016"
        }
    ]
}
   


Thanks in advance.



RE: Icon Menu Class - zeit - 07-22-2020

There you will find the answer http://json.parser.online.fr.


RE: Icon Menu Class - Joh76530 - 07-22-2020

(07-22-2020, 03:07 PM)zeit Wrote: There you will find the answer http://json.parser.online.fr.

Thank you for your answer  Smile however, it detects me a "class" ("key": "Acronis" 
"class": "Acronis")level when I think I have followed the instructions correctly.

Do you have an idea for me please?

Thanks in advance.



RE: Icon Menu Class - Joh76530 - 07-22-2020

it's good i found it, thanks for your help.
For information, there was simply a comma missing between the key and the class


RE: Icon Menu Class - Eliy970 - 07-24-2020

(07-22-2020, 09:09 PM)Joh76530 Wrote: it's good i found it, thanks for your help.
For information, there was simply a comma missing between the key and the class
Hi, can you upload the revised file?


RE: Icon Menu Class - Joh76530 - 07-29-2020

(07-24-2020, 09:00 PM)Hi there, hoping this is useful for you and others to come.Eliy970 Wrote:
(07-22-2020, 09:09 PM)Joh76530 Wrote: it's good i found it, thanks for your help.
For information, there was simply a comma missing between the key and the class
Hi, can you upload the revised file?
Code:
{
    "theme": {
        "file": "/ventoy/vimix/theme.txt",
        "gfxmode": "1920x1080",
        "ventoy_left": "5%",
        "ventoy_top": "95%",
        "ventoy_color": "#000000ff"
    },
   
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/ISOs" }

    ],
    
     "menu_alias": [
        {
            "image": "/ISOs/ISOs_Live/Acronis.iso",
            "alias": "Acronis 2020"
        },
        {
            "image": "/ISOs/ISOs_Live/clonezilla.iso",
            "alias": "Clonezilla"
        },       
        {
            "image": "/ISOs/ISOs_Live/gparted.iso",
            "alias": "Gparted"
        },
        {
            "image": "/ISOs/ISOs_Live/Hirens.iso",
            "alias": "Hirens 10.6"
        },
        {
            "image": "/ISOs/ISOs_Live/pwhe.iso",
            "alias": "Partition Wizard"
        },
        {
            "image": "/ISOs/ISOs_Microsoft/Windows_Serveur/SRV_2016.ISO",
            "alias": "Windows Serveur 2016"
        },
        {
            "image": "/ISOs/ISOs_Microsoft/Windows_10_Pro/W10P_1909.iso",
            "alias": "Windows 10 Pro (1909)"
        },
        {
            "image": "/ISOs/ISOs_Live/systemrescuecd.iso",
            "alias": "System Rescue CD"
        },
        {
            "image": "/ISOs/ISOs_Live/win10live.iso",
            "alias": "Windows 10 Live MALEKAL"
        },
        {
            "image": "/ISOs/ISOs_Linux/ubuntu_1910.iso",
            "alias": "Ubuntu 19.10"
        },
        {
            "image": "/ISOs/ISOs_Linux/kali-linux_2020_2.iso",
            "alias": "Kali Linux Live CD"
        },
        {
            "dir": "/ISOs/ISOs_Microsoft",
            "alias": "Déploiement Miscrosoft"
        },
        {    
            "dir": "/ISOs/ISOs_Live",
            "alias": "Live CD de Dépannage"
        },
        {    
            "dir": "/ISOs/ISOs_Linux",
            "alias": "Déploiement Linux"
        },
        {    
            "dir": "/ISOs/ISOs_Microsoft/Windows_10_Pro",
            "alias": "Installation Windows 10"
        },    
        {    
            "dir": "/ISOs/ISOs_Microsoft/Windows_Serveur",
            "alias": "Installation Windows Serveur"
        }
    ],
    
    "menu_class": [
        {"key": "Acronis","class": "Acronis"},
        {"key": "clonezilla","class": "clonezilla"},
        {"key": "gparted","class": "gparted"},
        {"key": "Hirens","class": "Hirens"},
        {"key": "pwhe","class": "pwhe"},
        {"key": "W10P_1909","class": "W10P_1909"},
        {"key": "SRV_2016","class": "SRV_2016"},
        {"key": "systemrescuecd","class": "srcd"},
        {"key": "win10live","class": "win10live"},
        {"key": "ubuntu_1910","class": "ubuntu1"},
        {"key": "kali-linux_2020_2","class": "kali1"},
        {"dir": "/ISOs/ISOs_Microsoft/Windows_Serveur","class": "serveur_microsoft"},
        {"dir": "/ISOs/ISOs_Microsoft/Windows_10_Pro","class": "windows_10"},
        {"dir": "/ISOs/ISOs_Live","class": "depannage"},
        {"dir": "/ISOs/ISOs_Microsoft","class": "microsoft"},
        {"dir": "/ISOs/ISOs_Linux","class": "linux1"}
    ]
}