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

xamanu - August 18, 2009 - 03:22
Version:5.x-1.0» 6.x-2.x-dev
Status:needs review» fixed

This has been implemented nicely for the 2.x branch of the timeline module.

#2

System Message - September 1, 2009 - 03:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.