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.058 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started