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 Make Menu Can be Opened in New Window/Tab in Websites that Created with PHPMaker 8.0.3
How to Show the Border-Bottom at the Main Table Last Row Cell in Websites that Generated by PHPMaker version 9.0.1
How to Remove Comma Separator in Combobox Lookup Field in Websites that Generated with PHPMaker 8.0.3

April 24, 2012

How to Make Menu Can be Opened in New Window/Tab in Websites that Created with PHPMaker 8.0.3

One of the great features in PHPMaker is the ability to create the pull-down menu easily with a nice and modern view in your web application. This menu also supports for horizontal or vertical style you may choose. Generally, we will use this menu feature in order to access our generated pages and open them in the same window of the browser. Sometimes, we also want to create menu items that can be opened in new window or tab of the browser from our web application. For example, we want to include some useful links to open the external websites that can be opened from the menu that generate with PHPMaker. When users click on one of those menu items, then it should open a new window or tab, so our current opened page will still stay in the browser, and not be replaced by that external website page.

Unfortunately, PHPMaker has not provided the settings from its Menu Editor in order to make the certain menu items can be opened in a new window or tab. So, this following customization will show you how to make the menu can be opened in new window or tab of the browser. I have successfully customized the template file to make it comes true, and it works perfectly. In other words, we will not customize the generated pages at all. A simple modification though, yet so powerful.

[hidepost]

  1. Open your /Script/ewshared.php file, and find this code:
    		$this->GroupTitle = $grouptitle;
    

    after that line, please insert the following code:

    		// Begin of modification by Masino Sinaga, April 23, 2012, in order to support _blank target in URL if it contains the prefix http
    		if (strpos($this->Url, "http://")!==FALSE) {
    		   $this->Target = "_blank";
    		}
    		// End of modification by Masino Sinaga, April 23, 2012, in order to support _blank target in URL if it contains the prefix http
    
  2. Go to Menu Editor menu. Create your own new menu items by using PHPMaker application, and make sure in the URL column you have included the prefix http:// for that new menu item.
  3. Save the project, and then re-generate your related script files, and make sure you have already re-generated your .xml language, ewshared*.php, and ewmenu.php files.

[/hidepost]

Article by Masino Sinaga / Customize Template / _blank, horizontal menu, new tab, new window, PHPMaker 8.0.3, pull down menu, target=_blank, vertical menu Leave a Comment

How to Show the Border-Bottom at the Main Table Last Row Cell in Websites that Generated by PHPMaker version 9.0.1
How to Remove Comma Separator in Combobox Lookup Field in Websites that Generated with PHPMaker 8.0.3

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