Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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.

Please Log in or Create an account to join the conversation.

Last edit: by gdpodesta.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
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!!!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.096 seconds

The j-cook project is one of the best of its kind and it is nice that we all try to contribute in little ways to make life easy for each other.

vlemos (Forum)  

Get Started