Choose to open link in new window
kees@qrios - December 7, 2006 - 09:53
| Project: | Advanced menu item settings |
| Version: | 4.7.x-1.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Just like Drupals "competitors" like Joomla and Wordpress. Joomla offers to choose between
"same window" (plain link)
"New window with navigation" (target = blank)
"New window without navigation" (javascript window.open)
In Joomla projects (simple sites) I personaly find this usefull.

#1
The problem is that adding a
targetattribute requires really heavy patching to thetheme_menu_item_*functions. There is currently no clean way to store the state of such a menu item. It would require an additional table and lots of additional queries. And that would result in a severe performance hog.While I appreciate your feature request and definitely see the use of it (even though I don’t like when websites open new windows; I use tabbed browsing), I can’t implement this in
advanced_menu.module. This module is really only about exposing the already available settings in the database. The handling for these features (Show in tree, Show in breadcrumb, Hide without children) is already in Drupal, there is just no interface for it.#2
I understand, maybe this should be issued elsewhere (core?.)
I like to use the target property for opening PDF files from the menu (realy, this is wanted occasionaly.) Modern browsers open PDF's in the main window by default.