Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Specifying HREF target from grid link?

Specifying HREF target from grid link? 15 Dec 2012 18:02 #6144

  • gdpodesta
  • gdpodesta's Avatar
  • Offline
  • Senior Member
  • Posts: 75
  • Thank you received: 8
  • Karma: -42
I've followed the code, and it appears that "target" is allowed, and considered along the way for some functionality somewhere, but I don't understand where/how to specify that I want the link on the grid to open a new window.
<?php echo JDom::_('html.fly', array(
    'dataKey' => 'access_code',
    'dataObject' => $row,
    'href' => "index.php?option=com_sips&view=playlists&layout=iapplaylists&Itemid=137&accesscode=abcdefg",
    'target' => "student"
    ));
?>
In this example, the user (Professor) is creating "Access codes" which should be used in the link to open a new window showing another view so that the professor can "test" the access code they just created and see how the end-user(the student) will see it .

:whistle: Kinda never mind...not sure if this is by design, but using "_blank" instead of a named target, it worked as expected.
Last Edit: 15 Dec 2012 18:05 by gdpodesta.
The administrator has disabled public write access.

Re: Specifying HREF target from grid link? 15 Dec 2012 18:32 #6146

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
That's weird, it should work with a framename instead of _self. _parent, _blank or top...

Not 100% but that does suggest that there is maybe a switch statement that's only checking the standard cases maybe?

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
Time to create page: 0.057 seconds

Get Started