[Request] Adding another submenu to iPXE

I’m pretty sure this is possible, I’m just not sure how to go about it. I’ve messed around with it a bit, but it never ended up working the way I wanted. I tried to more or less copy the current method for advanced.php, but for an as of yet unknown reason it would always claim it could not find the files/directory (after loading the newly created php file that is). I made it so it would read the contents of a static file stored in the same location, which worked well (it would display information as advanced.php would when opened in browser), so I’m fairly certain that part is fine.

I googled quite a bit on this, but most of the stuff either creates a giant menu in plain text with submenus integrated or they create a php file for every single item for their menus which I find rather cumbersome and unwieldy.

I don’t know a lot about php unfortunately and I know FOG calls upon data from mysql sometimes rather than text files or what not, but I figured it would be easier and less likely to mess anything up to do it this way.

I feel like I’m close, but missing something, any help would be appreciated, thanks.

@Sebastian-Roth I do indeed have advanced activated and have it in use for certain things.

As for the new submenu, it’s interesting that you would say this, since this is what I tried originally. In fact, the way I tested it was to copy what I had for the advanced menu (which works perfectly) into a new item. However, this never seemed to work for me. It would either just be a blank white screen or return me to main menu.

Could you verify that this method works? Because if so, I will attempt this again first thing monday morning. If it turns out that it does in fact work I have half a mind to wipe the current server and install from scratch since it wouldn’t be the only issue I’m having with it that doesn’t seem to want to go away.

@Quazz I am not exactly sure if I understand correctly what you are trying to achieve. From the subject of this post it sounds like you only want to have another submenu. This is possible without playing with the PHP files in FOG trunk - which you are using if I remember correctly?!

To activate the advanced menu you go to FOG configuration -> iPXE Menu Configuration -> fog.advanced and set “Menu Show with” to “Registered Hosts” (for example). As well you need to define the submenu in the field “Parameters”. From what I read between the lines you’ve already done this. I am just pointing those steps out in case you are doing it a different way.

To get another submenu you need to create a new menu entry (FOG configuration -> iPXE New Menu Entry). Here is a screenshot of a second menu I just created on my server: