Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#2 | rotating_banner-new-window-2159665-1.patch | 14.3 KB | apower |
Comments
Comment #1
Mistah7 CreditAttribution: Mistah7 commentedI had the same problem, tried different solutions from Drupalgarden, all very complicated and probably only working when you are in Drupalgarden.
So just by chance I found another module, External Links.
You find the module here
After enabling the module I configered that all external links should open in New window.
Great! ♫ ♪ ♫ ♫ ♪
Comment #2
apower CreditAttribution: apower commentedFor anyone who's interested, I wrote a patch to the 7.x-2.x-dev branch that will add support for this. It creates a checkbox on the slide edit form that allows the user to specify whether or not to open the slide in a new window.
The patch adds a field to the database table, so you'll need to run the update.php script to support it.
Comment #3
Niek_Kloots CreditAttribution: Niek_Kloots as a volunteer commentedI can confirm that the patch from #2 works.
It doesn't break the patch from #28 at https://www.drupal.org/node/1066350
And it also works with the patch #2 from https://www.drupal.org/node/1210078
I used and tested it with:
rotating_banner-7.x-2.x-dev https://www.drupal.org/project/rotating_banner/releases/7.x-2.x-dev
media-7.x-2.0-rc3 https://www.drupal.org/project/media/releases/7.x-2.0-rc3
and the following modules enabled:
ctools-7.x-1.12
file_entity-7.x-2.0-beta3
views-7.x-3.14
Comment #4
Niek_Kloots CreditAttribution: Niek_Kloots as a volunteer commented