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.
I have a client that needs functionality on their site similar to what glossify does but one of their requirements is to open links to terms in a new window and not in the same window. The attached patch provides a setting to do just that.
Comment | File | Size | Author |
---|---|---|---|
#4 | glossify-open_links_in_new_window-2364921-4.patch | 6.29 KB | dustinleblanc |
#3 | glossify-open_links_in_new_window-2364921-3.patch | 6.29 KB | dustinleblanc |
#1 | glossify-open_links_in_new_window-2364921-0.patch | 6.29 KB | dustinleblanc |
Comments
Comment #1
dustinleblancComment #2
dustinleblancComment #3
dustinleblancFixes a spelling error in my patch.
Comment #4
dustinleblancAnd yet another fix for whitespace... ^ embarassed that I didn't have vim setup to trim trailing whitespace already @_@
Comment #5
WorldFallz CreditAttribution: WorldFallz commentedThanks for providing a patch. unfortunately this pushes us right smack into the middle of the 'never use _blank' debate. I'm on the fence about adding it, but if we did I think it should be more along the lines of how the link module does it and perhaps with a js option. I need to do a little more updated research on the topic.
Comment #6
thummel CreditAttribution: thummel commentedI need the link to open in a new window as well. The patch #4 fails:
Hunk #9 FAILED at 266.
Hunk #12 FAILED at 364.
Any update? Awesome module. Thank you for working on it.
Tracey
Comment #7
dustinleblancTracey,
Sorry for the slow response on that, it may be that the module has moved on since I initially provided that patch and it no longer applies. Depending on if the maintainer is interested in this functionality I could possibly re-roll.
Comment #8
WorldFallz CreditAttribution: WorldFallz commentedDefinitely. If a purist doesn't like the _blank method they can provide a patch that does. It with js lol.
Comment #9
dustinleblanc@WorldFallz, I can research doing it a JS way, you down with that?
Comment #10
WorldFallz CreditAttribution: WorldFallz commentedSure! That would be awesome.
Comment #11
sanduhrs