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 was able to quickly and easily make an events calendar. http://events.econet.sk.ca However, when you click on an event title in the calendar view, the event opens in a new window. How do I change that?
Comment | File | Size | Author |
---|---|---|---|
#26 | fullcalendar-target-window.jpg | 20.83 KB | robcarr |
#22 | 1050530-fullcalendar-targetwindows-d6.patch | 2.34 KB | aspilicious |
#14 | fullcalendar-sameWindow-1050530-14-d6.patch | 2.42 KB | glennpratt |
#9 | fullcalendar-sameWindowV2.diff | 2.18 KB | aspilicious |
#6 | fullcalendar-sameWindow.patch | 2.04 KB | aspilicious |
Comments
Comment #1
John Yates CreditAttribution: John Yates commentedComment #2
aspilicious CreditAttribution: aspilicious commentedhttp://drupal.org/node/1042590
Comment #3
aspilicious CreditAttribution: aspilicious commentedTim, this is the second time we get this request should we make it an option (under jquery UI theme and colorbox)?
Comment #4
tim.plunkettYup.
Comment #5
aspilicious CreditAttribution: aspilicious commentedAssigning to myself...
Comment #6
aspilicious CreditAttribution: aspilicious commentedHere is a patch.
Comment #7
aspilicious CreditAttribution: aspilicious commentedComment #8
tim.plunkettNot sure if the dependencies can do this, but could this checkbox be hidden if colorbox is checked, since this won't take effect in that case.
Comment #9
aspilicious CreditAttribution: aspilicious commentedThat was easy :)
Comment #10
tim.plunkettI love adding features that don't affect current users unless they care.
Will commit later today.
Comment #11
drseussofporn CreditAttribution: drseussofporn commented*Wakes up* What? We can adjust the target window now? I care!
Comment #12
tim.plunkettAwesome, thanks!
http://drupal.org/cvs?commit=494762
Comment #13
Michsk CreditAttribution: Michsk commentedport. port. port! :P
Comment #14
glennpratt CreditAttribution: glennpratt commentedPorted...
Comment #15
John Yates CreditAttribution: John Yates commentedWorks great -- thanks.
Comment #16
Jon Nunan CreditAttribution: Jon Nunan commentedI'm using the 7.x.2.x dev and there seems to be a slight bug with the patch applied in #9. The field has a dependency on the colorbox checkbox being unchecked; and I get the reason why you need to check for that. But because I don't have the colorbox module installed at all that field doesn't even exist in my form so the dependency is failing. Sorry I don't know enough about ctools for any sort of elegant workaround, but I'd like a way to select 'same window' without having to install colorbox.
For a quick hack I just commented out the dependency line, but this is obviously not the way to go for colorbox users.
Comment #17
aspilicious CreditAttribution: aspilicious commentedCorrect I'll fix this :)
Comment #18
aspilicious CreditAttribution: aspilicious commentedFix in my test branch: http://drupal.org/node/1092518/git-instructions/newWindowFix/nonmaintainer
Timplunkett, I'm prety sure it works :)
Old code
new code
Comment #19
pjcdawkins CreditAttribution: pjcdawkins commentedThere's a tiny JavaScript mistake in this:
window.open(calEvent.url, _self);
Could you please replace
_self
with'_self'
?Comment #20
aspilicious CreditAttribution: aspilicious commentedI updated the branch thnx pjcdawkins.
It isn't rly the issue described here, but its easier to fix everything at once ;)
Comment #21
tim.plunkettCommitted: http://drupalcode.org/project/fullcalendar.git/commit/ae83bb4 (with credit! yay git!).
Comment #22
aspilicious CreditAttribution: aspilicious commentedBuild on colorbox and rtl
Comment #23
tim.plunketthttp://drupalcode.org/project/fullcalendar.git/commit/624de22
Comment #25
wickwood CreditAttribution: wickwood commentedI'm glad this feature has been added, but I can't for the life of me find where I turn it on. Could someone point me in the right the direction? The feature does not appear for me on the configuration page for FullCalendar or anywhere else that I've thought to look.
Thanks in advance!
Steve
Comment #26
robcarr@wickwood - in the view Style settings