Posted by nicholas.alipaz on June 24, 2009 at 3:52pm
| Project: | Availability Calendars |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | nicholas.alipaz |
| Status: | closed (fixed) |
Issue Summary
It would be very nice if the module enabled a block for the current month on each availability calendar. That way we could place the most recent month into the sidebar or other places.
Alternatively, open up each month to views so that we can grab any month and place them in a view with a "block display".
Comments
#1
#2
Try creating your self block, may be this way:
<?php$year = date('Y');
$month = date('m');
print theme_availability_calendars_node($node, $year, $month, $monthstodisplay = 1)
?>
#3
This is the code for you?
<?php$year = date('Y');
$month = date('m');
$node = menu_get_object();
print theme_availability_calendars_node($node, $year, $month, $monthstodisplay = 1)
?>
#4
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
I have used this code, but the content of the block is not showing inside the block. By this I mean, the block title shows properly, but the block background is showing just below the title and then the calendar is showing below that.
What do I need to do to get the calendar to show inside the block?
Thanks in advance.
#7
it sounds to me like a css issue between your theme and the block's styling. This won't get "fixed" in this module but it looks as though you will need to add some css to your theme to fix it. It is probably related to a float left that you don't need in your block.
The solution would likely look something like:
#BLOCK-ID .my-calendar{float:none;}Without seeing your site there is not really much we can do to help, other than guess.
--
Los Angeles Web Design and development for Drupal.
#8
Thanks for the reply. The site is presently at:
grennan.adesignforlife.net
Thanks again in advance.
#9
You will need this in your theme's stylesheet or another stylesheet somewhere:
#block-block-1 div.calmonth-wrapper, #block-block-1 table.cal{float:none;
}
Good luck.
--
Los Angeles Web Design and development for Drupal.
#10
Thanks for that; you've been most helpful. Thanks.