Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I installed Colorbox 7.x-2.4 on my Drupal 7.22
I had the need to implement the tag "fixed" which is normally in the JQuery Colorbox script.
I modified the "js/colorbox_inline.js" file in the following way:
+34 fixed:function(){
+35 return $.urlParam('fixed', $(this).attr('href'));
+36 },
now, when I call the href with the following way:
<a class"colorbox-inline" href="?width=500&height=700&fixed=true&inline=true#id-of-content">Open Colorbox</a>
the opened iframe of Colorbox is in fixed position.
I ask if it's possible to implement this option into the next releases of Colorbox, also for the method: colorbox-load
thank you very much
Comment | File | Size | Author |
---|---|---|---|
#2 | colorbox-inline-options-2003678-2.patch | 3.32 KB | pingwin4eg |
Comments
Comment #1
pingwin4egI wonder why there are different colorbox_inline.js and colorbox_load.js at all if they are doing the same stuff. Well almost, because inline one doesn't take into account some of default colorbox options and is limited by only few url query parameters.
Uploading this patch specifically for the `Fixed` parameter.
But I propose to rewrite initColorboxInline behavior to be more like initColorboxLoad or merge them into one file if that possible.
Comment #2
pingwin4egHere it is. All options are taken from defaults first and then overriden by URL parameters.
Comment #3
frjo CreditAttribution: frjo commentedComment #4
pingwin4eg@frjo Can you give details about why this won't be fixed?