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".

CommentFileSizeAuthor
#6 Picture 1.png34.31 KBmarkconroy

Comments

nicholas.alipaz’s picture

Assigned: Unassigned » nicholas.alipaz
dvasquez’s picture

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)
?>
dvasquez’s picture

This is the code for you?

$year = date('Y');
$month = date('m');
$node = menu_get_object();
print theme_availability_calendars_node($node, $year, $month,  $monthstodisplay = 1)
dvasquez’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

markconroy’s picture

StatusFileSize
new34.31 KB

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.

nicholas.alipaz’s picture

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.

markconroy’s picture

Thanks for the reply. The site is presently at:
grennan.adesignforlife.net

Thanks again in advance.

nicholas.alipaz’s picture

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.

markconroy’s picture

Thanks for that; you've been most helpful. Thanks.