Open print invoice in a new window

Posts: 108
Joined: 10/31/2007
Getting busy with the Ubercode.

Hi you all, this is not exactly a bug from coding standards but I think that it is from usability, being a small one. The submenu that points to the printable version of the invoice (on the admin area) opens on the same window using a new template where all the site menus dissapear. That may be wrong for many users that after printing the invoice maybe will close the window and thus lose the site, at least that's what my customer has made Smiling

So, I propose that this link open on a new window. I've tried to modify the menu item adding a line:

     'attributes' => array('target' => $item['_blank']),

but it's not working. Is it not possible to add that attribute on a regular drupal menu item?

Posts: 5617
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Yeah, not possible on a normal menu item... it could just be a page with a button for the admin to push to open in a new window like it works for customers. I agree the current way is confusing.

Posts: 108
Joined: 10/31/2007
Getting busy with the Ubercode.

Uhmm, it's not a terrible issue but for some users may force some mistakes. Anyway, because the menu is on the properly place...