mitch2k Posted July 12, 2015 Share Posted July 12, 2015 Hi, according to the documentations, I'm trying to add custom links to the six navigation bar: $socialMediaPanel->addChild('twitter-link', array( 'uri' => 'https://twitter.com/ourgreatcompany', 'label' => 'Follow us on Twitter!', 'order' => 2, 'icon' => 'fa-twitter', )); But how can I set the target of the link? I tried this: 'target' => '_blank', but this does not work... anyone an idea how to do this 0 Quote Link to comment Share on other sites More sharing options...
jayt Posted December 3, 2015 Share Posted December 3, 2015 Same problem here. I couldn't find any solution for that yet. Anyone knows how to do it? The "Options" array for addChild() is not documented where it's supposed to be: http://docs.whmcs.com/classes/classes/WHMCS.View.Menu.Item.html#method_addChild Please WHMCS team: add which options we can use in the array and add the "target" option if it's not there already. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 4, 2015 Share Posted December 4, 2015 http://forum.whmcs.com/showthread.php?99967-Nav-Links&p=443307#post443307 $socialMediaPanel->addChild('twitter-link', array( 'uri' => 'https://twitter.com/ourgreatcompany', 'label' => 'Follow us on Twitter!', 'order' => 2, 'icon' => 'fa-twitter', )) ->setAttribute('target', '_blank'); 0 Quote Link to comment Share on other sites More sharing options...
jayt Posted December 5, 2015 Share Posted December 5, 2015 Thank you very much brian! That is a great solution! I couldn't find that post in the past days. All the best 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.