Initial Date Argument
gcassie - January 20, 2009 - 16:34
| Project: | Timeline |
| Version: | 6.x-2.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
I'm using a version of theme_views_view_timeline that allows for a view argument to define its initial date.
<?php
if (is_numeric(arg(1))) {
$initial_date = arg(1);
}
else if ($initial_focus == 'today') {
$initial_date = time();
}
// etc etc etc
?>In conjunction with the custom breadcrumbs module, this allows you to set the path of a timeline node to include its date. Then if someone navigates back to the timeline from the breadcrumbs, the view will be centered on the event they were just viewing.
It can also allow you to link directly into the timeline at a particular point.
Hope someone finds this useful.

#1
This has been implemented nicely for the 2.x branch of the timeline module.
#2
Automatically closed -- issue fixed for 2 weeks with no activity.