Posted by amirtaiar on February 7, 2009 at 8:26am
| Project: | Calendar |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | task |
| Priority: | normal |
| Assigned: | amirtaiar |
| Status: | closed (fixed) |
Issue Summary
I have looked for it for long trying to find a way to create one more small calendar block and there is a unic style display for this block name calendar nevegation.
can anyone know how to create a new one?
Comments
#1
I´ve got the same problem.
Can´t believe nothing happened in this issue since february!
#2
calendar navigation is not one of the style options.
I would love it to be
Chris
#3
Subscribe
#4
First of all an awesome module and a huge undertaking to create and maintain I'm sure, thankyou..
Just to clarify:
So as I understand it The Calendar Navigation style is not available to new blocks and you can't duplicate a Display in Views 2 at the moment to copy this setting to a duplicate block?
I have added a style plugin to Views 2 to be able to make the title of the block (read:Calendar) a link to the Page View of Calendar (Downloaded here). As right now I have a big Calendar heading above the Calendar Block that goes no where
However the plugin requires I create a Block (title link) display type and migrate the settings of the Default Calendar Block to this new block display, however in the new display the 'Calendar Navigation' style is not available to me.
So that's a +1 from me! Thanks
Note For anyone interested: as a work-around I put a link to the calendar page view in the header of the calendar block and styled it like a heading, then set the original title to display:none using CSS
#5
Actually, 'calendar navigation' is an option - just only on the default view. There seems no way to add another view like this. See attached screen shots.
#6
+1
#7
Karen can correct me if I am wrong,
But I believe the only way to really do this is to clone the default calendar view.
You cannot create a calendar view from scratch.
#8
I just ran into this and had to clone the original calendar view then recreate all my settings from scratch.
#9
Hi all,
have pretty much the same issue... i would like to show a block that looks like the default page view. meaning a monthly calendar incl. the events (node). The default block only underline's the date where there is an event, but as said, I would like to show the event like on the page view.
I tried to make this and could create the block that shows the content, but than the navigation links are missing.
See http://www.bmw-treffen.info
First block looks nice but has no navigation options, next block has navigation but no content :(
how can I combine these settings in one view/block?
Thanks!
fogg
#10
Same problem here
If I use the default calendar view, i get only the navigation and no dates/content...
If i create my own view (which doesn't support the navigation) the calendar dates/content show fine.
#11
Hi All
Just updated to views 6.x-2.11 and this is fixed !!!!!
I now have a navigation header and some content :-)
Remember to run update.php after you have moved the module file across.
#12
Having the same problems; all modules at latest versions... any ideas anyone?
#13
I was having the same problem. We only needed to display the same block in different regions, so our problem was resolved by doing some hacky code like so:
<?php
$block = module_invoke('views', 'block', 'view', 'calendar_block_1');
print $block['content'];
?>
This of course won't work if your 2nd calendar block is going to work differently to the first.
#14
I had the same problem, then cloned the calendar view and changed the settings of the second block to show the next month. It looks fine now, but when I click on the next or previous links both calendars are set to the same month...
I've only changed the Date argument, adding the following code in the php validation field:
<?php
$argParts = split("-", $argument);
if ($argParts[1] < 12) {
$handler->argument = $argParts[0] . '-' . ($argParts[1] +1);
}
else {
$handler->argument = ($argParts[0] + 1) . '-' . ($argParts[1] - 11);
}
return TRUE;
?>
but somehow the calendar gets set to the month of the argument....
#15
I was having trouble with this as well. Apply this patch, create a new block display, and attach the block attachment view to it.
#16
I tested the patch and it worked well for me. Thanks for the patch.
#17
I can't get it to work. I patched the module, cleared all caches, went to the view, created a new display, and can't see the "calendar navigation" option.
(Note: I tested this on version 2.4; perhaps your patch is good for 2.2?)
#18
#19
Thanks for the feedback alberto56. Here's a reroll of the patch, against 2.x-dev.
Did you follow the steps from #15?
#20
Hi,
thanks for your response. I think, as you suspected, I did not correctly follow the steps from #15. In fact I have a few questions about what I'm supposed to do:
Do you mean a new block display in the current "calendar" view? If so, I'm not sure I understand what the patch is supposed to do: if I understand correctly, even without the style, the default display of the calendar view allows "calendar navigation", so all new blocks will be "calendar navigation" by default.
My understanding of views is that there are several types of displays possible in a view: default, page, block, attachment... So I'm unclear on the concept of a "block attachment view" -- to me, a block and an attachment are two mutually exclusive possible displays of a view. Please clarify.
Also, you might be interested in #294319: Calendar navigation Views style
Cheers,
Albert.
#21
Hi Albert, sorry for the confusion. What this patch is doing is enabling you to use a second block as a "mini-calendar", like the "Calendar block" display. What you need to do is add a new display of the type "Block" to the existing calendar view, and then edit the attachment display which is called "Block attachment" and check off the name of your new block display under "Attach to". You should now be able to place that block on any page and see a mini calendar. Hope that is clearer.
#22
Thanks for the clarification! My misunderstanding then; my usecase is a bit different, really more in line with #294319: Calendar navigation Views style.
Albert.
#23
Setting this one back to "needs review" as it was.
A.
#24
I think I get what people are trying to do here. When you create a view that has a date, and you set the Style to 'Calendar'.., you have to add a new display called 'Date Browser' and attach it to your block (or whatever display). In the options for the new display (Date Browser), it'll give you the option to attach it to other displays that you've created already. Check out the screenshot, hopefully they help clarify things a bit.
#25
Hi bfodeke,
thanks. exactly what I needed.
Works like charm.
Fogg
#26
Automatically closed -- issue fixed for 2 weeks with no activity.