Hello

This might be somewhere obvious but I can't find it. I have a week view set up for a calendar here. I'd like to flip the chart axes so that instead of days along the top and hours down the side, it's hours along the top and days down the side. Swapping the rows/columns.

Is this possible?

Thanks

Comments

sassafrass’s picture

You can over-ride the calendar module's template files to alter the display of the different calendar displays. In the calendar module's theme folder you will see template files for all of the different calendar displays. Copy and paste the calendar display that you would like to alter into your own sites/themes/your-theme/templates folder. You can then alter this file to only display the days of the week you would like.

For example, copy calendar-week.tpl.php to your own theme folder. In this file there are several variables you can manipulate, such as: $day_names: An array of the day of week names for the table header. $rows: The rendered data for this week. You can change this file to create the display you want.

Neslee Canil Pinto’s picture

Status: Active » Closed (outdated)