Fullscreen
[Show/Hide Right Column]

English British

How to make menu items open in a new window.


This method uses some jquery. There is an alternative method described at Menu

Insert the following code at the bottom of templates/footer.tpl (which is a convenient place to put it).

The option item that you want to open in a new window in the following example is 1318, corresponding to option ID 1318 in admin menus

{jq}
$('.option1318 a').click( function() {
window.open( $(this).attr('href') );
return false;
});
{/jq}


You can specify multiple options to be affected as follows (in this case option 1315 and 1318)

{jq}
$('.option1318 a,.option1318 a').click( function() {
window.open( $(this).attr('href') );
return false;
});
{/jq}


Contributors to this page: Torsten Fabricius1845 points  and Nelson810 points  .
Page last modified on Saturday 19 May, 2012 11:47:10 UTC by Torsten Fabricius1845 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki