How to open new Tab/window from hooks/links-navmenu?

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

How to open new Tab/window from hooks/links-navmenu?

Post by ronwill » 2019-07-09 10:05

Hi,

I've tried several methods but no luck!

How do I change this:
* You can add custom links to the navigation menu by appending them here ...
* The format for each link is:
$navLinks[] = array(
'url' => 'https://mywebsite.com/index.php',
'title' => 'Link title',
'groups' => array('group1', 'group2'), // groups allowed to see this link, use '*' if you want to show the link to all groups
'icon' => 'path/to/icon',
'table_group' => 0, // optional index of table group, default is 0
);
*/

To open my url link in a new window/tab instead of parent tab?

Cheers, Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: How to open new Tab/window from hooks/links-navmenu?

Post by pbottcher » 2019-07-09 13:28

Hi,

use

Code: Select all

'url' => 'https://mywebsite.com/index.php"  target="_blank',
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: How to open new Tab/window from hooks/links-navmenu?

Post by ronwill » 2019-07-09 15:52

Excellent, that worked....

I was trying: 'url' => 'https://mywebsite.com/index.php target=_blank',
and few variations of that with no luck, yours works fine.


Thanks for your quick positive result,
Cheers, Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

Post Reply