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.
The 'Month','Week','Year' 'Day' and 'next>>','<
The 'Month','Week','Year' 'Day' and 'next>>','<
Comments
Comment #1
KarenS CreditAttribution: KarenS commentedI do not have any clue at all what you are reporting here. And if you refer to other modules, like Panels, you need to be clear about which version of that you are using. Panels 2 is dead, only Panels 3 is going to be supported, so be sure you're using that.
Comment #2
iam_himanshu CreditAttribution: iam_himanshu commentedThanks KarenS
Comment #3
cgillogly CreditAttribution: cgillogly commentedPanels 6.x-3.0-beta1
Views 6.x-2.5
Calendar 6.x-2.1
I believe the problem iam_himanshu is talking about is the same one I am having. When going to the view page and you click on the date / navigation links, it goes to /path-to-calendar-view-page/ARGUMENT. However, when you add the view page to a panel, the link goes to /path-to-panel?=path-to-calendar-view-page/ARGUMENT
Example URLs:
http://example.com/calendar/2009-W18 (calendar view page)
http://example.com/custom/calendar?=calendar/2009-W18 (calendar view in a panel)
So, the problem seems to be that the argument never gets passed along to the view. I'm not sure if this is really a bug Calendar or Views... or something with Views within a Panel...
Comment #4
cgillogly CreditAttribution: cgillogly commentedIf you add a view pane (or content pane) to the calendar view, attach the year, month, etc to it, and set the argument input to be From panel argument and set it to first it will work if you manually type the argument into the URL... but the links still to the ?=path-to-calendar-view-page/ARGUMENT and don't work... so the output of the URLs is what needs fixed as well as maybe adding the view pane in the default install so people can just add that to their panels without having to create it and attach everything...
Comment #5
Parkes Design CreditAttribution: Parkes Design commentedHi cgillogly? have you come up with a solution on how to get around this problem yet? Or are calendar pages just not meant to be in a panel pane?
I'm currently at the same stage where you are and I'm stuck as to how to change the links.
Comment #6
cgillogly CreditAttribution: cgillogly commentedTry the latest release of ctools & panels to see if it's fixed now. I believe a few things were fixed in the last 2 releases that may fix this. I have changed how I was working with the Calendar when I changed themes, so I no longer need panels for this. However, if you find that the latest ctools & panels doesn't solve the issue, I will setup a calendar in a panel and take another look at it.
Comment #7
Parkes Design CreditAttribution: Parkes Design commentedThanks cgillogy, I've used the latest versions but still have the same problem. So I reverted to renaming the calendar views path to the directory I wanted to use and build items around it using standard blocks to achieve the effect that I was after. I would be really interested when a solution for this gets released though.
Cheers.
Comment #8
MichelleI just ran into this problem and spent most of the last hour digging through Calendar to try and figure it out. I was also chatting to merlinofchaos at the same time which got him looking at it. Being much better at this than I am, he found the problem. It's midnight and I'm not up to understanding what he's saying at this time of night, so just pasting the relevant bits here. Hopefully this is enough for Karen to swoop in and get it sorted so we can all use the lovely Calendar module in Panels. :)
Thanks,
Michelle
(edit to add code tags)
Comment #9
cronix CreditAttribution: cronix commentedSubscribing
Comment #10
basanta86 CreditAttribution: basanta86 commentedHas this been incorporated into the latest dev?
Comment #11
Michelle@basanta86: This is still an active issue. When it's fixed, it will be marked so.
Michelle
Comment #12
ck9 CreditAttribution: ck9 commentedCould you fix this please? Thanks / subscribing
Comment #13
mxmilkiib CreditAttribution: mxmilkiib commentedsubscribe
Comment #14
marcin-mark CreditAttribution: marcin-mark commentedsubscribe
Comment #15
MichelleSigh. I already asked you in the other issue not to change the issue title. Please stop. Nonsense titles make it hard to tell what something is when looking in the queue / tracker.
Michelle
Comment #16
ck9 CreditAttribution: ck9 commentedAny progress on this? I guess a lot of people using calendars will want to present them within a panel.
Comment #17
attilahooper CreditAttribution: attilahooper commentedEdit: oops, this wasnt my issue.
Comment #18
petrelharp CreditAttribution: petrelharp commentedThere is a temporary workaround in #395936-12: Date browsing doesn't work indside a panel pane, for all you antsy folks.
Comment #19
Fr0s7 CreditAttribution: Fr0s7 commentedSubscribe
Comment #20
jgoodwill01 CreditAttribution: jgoodwill01 commentedSubscribe
Comment #21
ldweeks CreditAttribution: ldweeks commentedsubscribing
Comment #22
rismondo CreditAttribution: rismondo commentedsubscribing
Comment #23
Skorpjon CreditAttribution: Skorpjon commentedsubscribing
Comment #24
jessefulton CreditAttribution: jessefulton commentedsubscribing
Comment #25
robbertnl CreditAttribution: robbertnl commentedSubscribe
Comment #26
davepoon CreditAttribution: davepoon commentedsubscribing. Having an exactly same problem...
Comment #27
FreddieK CreditAttribution: FreddieK commentedsubscribing
Comment #28
jdln CreditAttribution: jdln commentedsubscribing
Comment #29
Apfel007 CreditAttribution: Apfel007 commentedsubscribe
Comment #30
mccrodp CreditAttribution: mccrodp commentedsubscribe
Comment #31
Apfel007 CreditAttribution: Apfel007 commentedany hints here? Need a event slider in a panel - did someone find a work around ? A costum views etc.?
Comment #32
gappleDigging closer to the problem, it seems to occur within
date_real_url()
with this particular statement:The
if
block returns a url like "calendar?=calendar/2010-09", while theelse
block returns "calendar/2010-09" (which I assume is the correct url needed).It appears that date_api determines that the view is within a block, and so attempts to add the arguments to the query string instead of the url.
date_block_identifier()
returns empty, as merlinofchaos mentioned, but I don't think it's broken; it just doesn't have a proper block identifier to return since we're not using a block.I don't think
date_block_identifier()
needs any fixes, just theif
condition needs to be improved so that it falls through to theelse
block when the view is within a panel.Comment #33
gappleIt looks like the problem is with
$view->preview
.When viewing the calendar as a page, both
$view->preview
and$view->date_info->block_identifier
are NULLWhen viewing within a panel,
$view->preview
is set to 'TRUE', resulting in the wrong path being outputComment #34
kapep CreditAttribution: kapep commentedSimple fix to use calendar navigation in panels without patching anything:
Use a validator (PHP Code) for the date argument.
In panels overwrite the view path with panels path.
Comment #35
gappleWhile I was able to implement @kapep's work-around for a panel display, it took considerable wrangling (possibly due to some other issues with Calendar)
It's also worth noting that this will break the actual preview, so don't click any links in the display preview in the admin ui.
Views Settings:
I had difficulty with argument inputs other than "From Panel Argument: First". Others that seemed like they should work simply wouldn't, resulting in the default argument always being used.
"Allow Settings: Path Override" must be enabled, otherwise the view will use the entire path, arguments included, for links. It does not work to turn on the "Use Panel path" setting.
Panels Settings:
Add an optional argument to the panel's path (e.g. calendar/!date) and configure it (you may need to save and reload the page for the 'Arguments' item to appear in the panels menu)
Add the calendar panel display to the panel page. Override the path to the page's path without the argument (e.g. calendar).
Comment #36
kapep CreditAttribution: kapep commentedMaybe I should mention that I wasn't able to create a working Calendar content pane in Views. It shows the Year/Month/Week/Day header and the current month and year but is empty otherwise. (Any help here?)
What I did was adding the calendar view page to the panel content.
Views: Only add the validator as in #34
Panels:
When adding/editing the calendar page:
There is an option named "Override URL:", I have set it to "events/calender" (that's my panels path).
For the arguments: I was lazy and checked "Send arguments" - I'm pretty sure it will also work by selecting specific arguments as described below the arguments input form.
The views preview does not work as it did before, I guess it some kind of non-ajax version of a preview. Well, unless you are using the same view somewhere else where you actually need the preview version with the
?=calendar/
part in the argument it shouldn't be a big problem.Comment #37
KarenS CreditAttribution: KarenS commentedMarked #460120: Date browser not working when view is embedded as block or page in a panel page as a duplicate, it has more information.
Comment #38
KarenS CreditAttribution: KarenS commentedOther duplicates, maybe with more information: #644698: Is it possible to use Calendar View in Panels page?, #395936: Date browsing doesn't work indside a panel pane, #309661: Related embedded calendar views.
Also #339279: [calandar] AJAX navigation in month view might be related.
Comment #39
KarenS CreditAttribution: KarenS commentedI don't use panels and don't have time to install it and try to debug this, so this is waiting for someone who does use panels to provide some sort of patch.
Comment #40
endiku CreditAttribution: endiku commentedSubscribe
Comment #41
mErilainen CreditAttribution: mErilainen commentedI have a same problem. In addition I'm using different languages, so the override URL sounds a bit tricky, I would have to set different override for each language. Best solution would be to get it working with with AJAX inside the pane. I'll investigate more and post here if I find a working solution with Panels and Views settings or patch.
Comment #42
AlfTheCat CreditAttribution: AlfTheCat commentedsubscribing
Comment #43
haggins CreditAttribution: haggins commentedsubscribe
Comment #44
baff CreditAttribution: baff commentedsubscribe
Comment #45
MickC CreditAttribution: MickC commentedMonth Navigation solved - you have to do 3 things in Pane Settings:
1) set Use Panel path to Yes
2) set Argument Input to From Panel Argument, select first
3) Allow settings and check Path Override
Then in the panel settings in the page set the URL to your path URL. Then the month navigation works.
Comment #46
selwynpolit CreditAttribution: selwynpolit commentedI am using panels 6.x-3.9 and I can't see these Pane settings. Is there something I need to do in views to see these panel settings?
Comment #47
stevebart9 CreditAttribution: stevebart9 commentedNot seeing settings in post #45 either
Comment #48
selwynpolit CreditAttribution: selwynpolit commentedok, figured this out. Create a panel (it needs a url like "mycalendar") , add the calendar "page" view into the content and on the panels settings window (pane?) click Send arguments and then below that in "override URL" add the url mentioned above (i.e. mycalendar) - save and you are done!
When you click on the navigation links, instead of them referring to calendar/2011-09, they will refer to mycalendar/2011-09 which is your panel.
Aargh! I hope this saves someone else some time.
ps. You can use the url calendar for your panel but you will need to change the views page URL to something else. It appears that in the battle between panels and views, views wins and so a panel with a url "calendar" will never show up when there is a view with a url "calendar"
Comment #49
MickC CreditAttribution: MickC commentedPane Settings is in the Views UI, bottom left - I'm using Views 6.x-2.12.
#48 is using a "page" view, but you can also use a "panel" view if you change Pane Settings.
Comment #50
cartagena CreditAttribution: cartagena commentedThank you sooooooo much for #45!! Worked perfectly. How did you ever figure this out? Thanks again...
Comment #51
revelstokesnowboard CreditAttribution: revelstokesnowboard commented@MickC
Thanks 1,000,000 for figuring that out.
Comment #52
Parkes Design CreditAttribution: Parkes Design commentedNice... can't wait to try this.
Comment #53
DamienMcKennaUnfortunately the Drupal 6 version of this module is no longer supported.