I Love PHPMaker

... because it gets even more powerful and flexible!!

  • About
  • Terms and Conditions
  • Membership Options
  • Sitemap
  • Downloads
    • PHPMaker Extensions Download
    • PHPMaker Projects Download
    • PHP Report Maker Extensions Download
I Love PHPMaker » Customize Template » How to Customize Menu in Websites that Created with PHPMaker 9.0.2
How to Standardize the Width of Label and Width of Data Column in Add, Edit, and View Pages in Websites that Generated with PHPMaker 9.0.2
How to Combine Current User ID and Current User Name into User Column in Audit Trail of Websites that Generated with PHPMaker 9.0.1

May 31, 2012

How to Customize Menu in Websites that Created with PHPMaker 9.0.2

Now it's time to customize Menu in your web application that generated with PHPMaker 9. We will add the icons (16 x 16 pixels) or small images as well as the icons on the menu items. Now you can beautify your menu display by adding the icons or images that sit on the left of the menu text. We will add the source code for this purpose from the PHPMaker application.

In addition, since PHPMaker 8+ has changed the css of its menu, there is a condition where you will see some blank space before the menu text item. I have found the solutions regarding .css modification in order to decrease the left-padding of the menu item, so that the menu item will not consume many blank space anymore before the menu text itself.

All we have to do is customizing the PHPMaker template file and also adding some modification from the Multi-Languages Property Editor section of PHPMaker. In other words, we will not customize the generated script files.

Updated on July 22, 2012: This customization has been implemented in PHPMaker version 9.0.3, it matches to each other, and as a result, it works properly.

Updated on September 5, 2012: This customization has been implemented in PHPMaker version 9.0.4, it matches to each other, and as a result, it works properly.

Updated on November 29, 2012: This customization has been implemented in PHPMaker version 9.1.0, it matches to each other, and as a result, it works properly.

Updated on February 9, 2013: This customization has been implemented in PHPMaker version 9.2.0, it matches to each other, and as a result, it works properly.

[hidepost]

  1. Open your \Script\yui290\build\menu\assets\skins\sam\menu-skin.css file, and find this code (only for PHPMaker version < 9.2.0):

    .yui-skin-sam .yuimenubaritemlabel {
    
        padding: 0 10px;
    

    then replace it with this following code:

    .yui-skin-sam .yuimenubaritemlabel {
    
        padding: 0 5px;  /* Before: padding: 0 10px */
    

    This modification for the parent menu; especially if you are using the horizontal menu layout.

  2. Still in the same file at the step number one above, find again this code (only for PHPMaker version < 9.2.0):

    .yui-skin-sam .yuimenuitemlabel {
    
        padding: 0 20px;
    

    then replace it with this following code:

    .yui-skin-sam .yuimenuitemlabel {
    
        padding: 0 15px 0 9px; /* Before: padding: 0 20px */
    
  3. Open your \Script\yui290\build\menu\assets\skins\sam\menu.css file, and find this code (for PHPMaker version <= 9.2.0):

    .yui-skin-sam .yuimenubaritemlabel{padding:0 10px;
    

    then replace it with this following code:

    .yui-skin-sam .yuimenubaritemlabel{padding:0 5px;
    

    This modification for the sub-menu; either if you are using the horizontal or vertical menu layout. You will see that the difference between the parent and the child menu is 2px (7px minus 5px). This will make the indentation for your sub-menu against its parent menu.

  4. Still in the file at the step number three above, find again this code (for PHPMaker version <= 9.2.0):

    .yui-skin-sam .yuimenuitemlabel{padding:0 20px;
    

    then replace it with this following code:

    .yui-skin-sam .yuimenuitemlabel{padding:0 15px 0 9px;
    
  5. Go to your PHPMaker application, and click on Tools menu, and then click on Multi-Language Property Editor, and you will see a Multi-Language Property Editor window appears.
  6. On the left pane, click on the Menu Text item, then you will see on the right pane, there are some menu items you have. Change the menu text by adding the image tag to the proper image or icon.
    For example, this is the code of your menu item which has been added an icon named customer.ico into one of a menu item named Customers:

    <img src='phpimages/customer.ico' border='0' style='vertical-align:middle' > Customers
    

    It is strongly recommended that this .ico file is a 16 x 16 pixels; with Horizontal/Vertical Resolution = 96 dpi; Bit Depth 32; Frame Count = 1. Don't forget to copy that customer.ico file into your \Script\images\ sub-directory of your unzip template files, because this file will be used by your menu starting today. Please note, since PHPMaker 8+, the location of all your images should be placed in /phpimages/ sub-directory under your root web application instead of the old one; /images/.

  7. Re-generate all of your script files, then you will see the result. Enjoy it! 😀

[/hidepost]

Article by Masino Sinaga / Customize Template / child menu, css, horizontal menu, icon, image, menu, parent menu, PHPMaker 9.0.2, PHPMaker 9.0.3, PHPMaker 9.0.4, PHPMaker 9.1.0, PHPMaker 9.2.0, vertical menu 5 Comments

How to Standardize the Width of Label and Width of Data Column in Add, Edit, and View Pages in Websites that Generated with PHPMaker 9.0.2
How to Combine Current User ID and Current User Name into User Column in Audit Trail of Websites that Generated with PHPMaker 9.0.1

Comments

  1. Claudiu Banut says

    June 7, 2013 at 2:08 pm

    Any workaround for 8.x version to use icons in menu?

    Log in to Reply
    • Masino Sinaga says

      June 8, 2013 at 8:12 am

      Sorry, I won’t try it in the older version anymore. I suggest you to upgrade to the latest version. Many advantages you will get when you use the latest version.

      Log in to Reply
      • Masino Sinaga says

        June 8, 2013 at 8:15 am

        However, if you are still using 8.x version, follow this article: How to Add Icon on Menu in Website Created With PHPMaker 8.0.3.

        Log in to Reply
  2. Claudiu Banut says

    June 17, 2013 at 3:56 pm

    Thanks, I found it alaready. How about changing the menu background color and font color? For background I found .yui-skin-sam .yuimenu .bd {
    background-color: #426FD9;; in the ewmenu.css but the font color of the menu?

    Log in to Reply
    • Masino Sinaga says

      June 17, 2013 at 4:20 pm

      Simply customize your phpcss/ewmenu.css file.

      Log in to Reply

Leave a Reply Cancel reply

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • A New PHPMaker 2025 Project File Is Released
  • PHPMaker 2025 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2025 Is Released!
  • A New PHPMaker 2024 Project File Is Released
  • PHPMaker 2024 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2024 Is Released!
  • PHPMakerProjects.com, For Those Who Need PHPMaker Project Sample
  • A New PHPMaker 2023 Project File Is Released
  • PHPMaker 2023 Demo Project File Is Released
  • Masino Extensions for PHPMaker 2023 Is Released!

Search

Recent Comments

  • Masino Sinaga on Masino Extensions for PHPMaker 2024 Is Released!
  • Masino Sinaga on A New PHPMaker 2024 Project File Is Released
  • Masino Sinaga on PHPMaker 2023 Demo Project File Is Released
  • Edward Babatunde on PHPMaker 2023 Demo Project File Is Released
  • Edward Babatunde on Masino Extensions for PHPMaker 2024 Is Released!

Demo Website

  • Demo of I Love PHPMaker 2025 (MasinoExtensions).
  • Stock Inventory Management for PHPMaker 2025.

Another Demo

The following template are not available in this site (must be purchased separately)

  • PHPMaker v2018 Horizontal Vertical Template.
  • PHPMaker v2017 Horizontal Vertical Template.

Demo Explanation

Stock Inventory Management is the good project for your reference, since it uses the real example in the real world. Many useful features you can use from this project, such as how to add the Thousand and Decimal separator character, and also how to calculate multiple row in Grid-Add when End-Users are entering data into the Grid-Add mode.

Categories

  • Customize Template (103)
  • General (4)
  • PHP Report Maker (17)
  • PHP Report Maker Extensions (2)
  • PHPMaker Extensions (84)
  • PHPMaker Projects (7)
  • Tips and Trick (72)

Articles based on version

  • PHPMaker 2025
  • PHPMaker 2024
  • PHPMaker 2023
  • PHPMaker 2022
  • PHPMaker 2021
  • PHPMaker 2020
  • PHPMaker 2019
  • PHPMaker 2018
  • PHPMaker 2017.0.7
  • PHPMaker 12.0.7
  • PHPMaker 11.0.6
  • PHPMaker 10.0.5
  • PHPMaker 9.2.0
  • PHPMaker 8.0.3
  • PHP Report Maker 12

(c) I Love PHPMaker 2010 - 2025 by Masino Sinaga | WordPress | Log in | Back to top