PHPMaker only allows you to use one of the two menu layout when you generate the script, whether to use Horizontal or Vertical menu layout in one occasion. That is, when you first generate the script using the Horizontal menu layout, in the future you decide you want to switch using Vertical layout menu, then you have to re-generate the script by changing the existing menu layout from Horizontal to Vertical from the menu “Tools” -> “Extensions” -> “Graphical” -> “Advanced” tab in the application PHPMaker. It is very inefficient, isn’t?
The following modification will solve these problems through the help of a fairly constant setting that can be changed from its configuration file. In other words, each time you want to switch from one layout to another, then you will quite simply change a parameter that defined in “ewcfg8.php” file without having to re-generate related script menu. Your site will support for using both Horizontal or Vertical menu based on the related constant value in your configuration file.
Updated: This modification has been tested and works fine also for the latest version, PHPMaker 8.0.3 on August 27, 2011.
All we have to do is customizing PHPMaker template files. In other words, we will not modify the generated script files.
Please click on the following image to watch the demo:

Recent Comments