There is a default event node visible at admin/content, but that indeed the node does not display at /events.

Comments

meba’s picture

The reason is that it only shows events with starting date > now and Ribfest event was set up to start Jan 12 - on this date it stopped working.

meba’s picture

Status: Active » Needs review
StatusFileSize
new763 bytes

Here is a patch that should set the date to now + 1 month during installation.

ezra-g’s picture

StatusFileSize
new1.04 KB

Thanks for the patch!

Here's a revised patch that includes code comments, uses $_SERVER[REQUEST_TIME] instead of time(), and makes the events farther in the future (6 months).

japerry’s picture

Status: Needs review » Reviewed & tested by the community

I was thinking it'd be nice for an update script for older sites -- but if you're upgrading you probably don't have default content. looks good to me.

devin carlson’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new896 bytes

Tested #3 and didn't run into any issues.

Attached an updated version of #3 which uses the Drupal REQUEST_TIME constant ($_SERVER['REQUEST_TIME'] is stored as a float in PHP >= 5.4.0 and can cause problems) and swaps date() for format_date().

devin carlson’s picture

Status: Needs review » Fixed

Tested #5 with a fresh Commons install and verified that the example event content appeared in the events directory with the proper start and end date.

Committed #5 to Commons 7.x-3.x.

http://drupalcode.org/project/commons.git/commit/14c8abd

Status: Fixed » Closed (fixed)

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