Author Topic: Timeline Display for Workspaces  (Read 10694 times)

pmaxx

  • Freshman
  • *
  • Posts: 24
    • View Profile
    • Email
Timeline Display for Workspaces
« on: April 20, 2009, 12:50:52 am »
Greetings!

There is an open source, BSD license code here:
http://www.simile-widgets.org/timeline/
 It is described as a "DHTML/AJAX Web Widget for Visualizing Temporal Data" This thing displays a scrollable timeline.  It's a great way to visualize events over a timeline.

It is comprehensive enough to display all objects and actions in a workspace, including document add, checkout & checkin and the duration of the checkout, if it is long enough to display as more then a point in the timeline.   You could even display user access changes (probably only want to display those to administrators).

This would provide a time based overview of workspaces.  Could be pretty useful!

- Paul

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Timeline Display for Workspaces
« Reply #1 on: April 20, 2009, 03:44:47 am »
wow that is very slick
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

andy.hoyle

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Timeline Display for Workspaces
« Reply #2 on: April 20, 2009, 09:36:36 am »
Yes please!!!!

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: Timeline Display for Workspaces
« Reply #3 on: April 20, 2009, 03:25:08 pm »
Very interesting Paul. Thanks!  :)
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.

max

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Timeline Display for Workspaces
« Reply #4 on: April 20, 2009, 06:55:04 pm »
It's beautiful & it would be a perfect addition for the (somewhat too basic) calendar module. is the BSD license compatible with OGOOs GPL??

The beginners guide seems like it's almost trivial to use. Some Javascript and a straightforward JSON record format. EventSources

One of the strengths is the ability to link multiple timelines to run in parallel.
So… the calendars of multiple workspaces could be aligned in a stack.and scroll in unison. With an overview in a zoomed-out scale. Fab-u-lous!

Pretty please dear developers, could you hint me on where to hack into the calendar module to insert a custom view???

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Timeline Display for Workspaces
« Reply #5 on: April 21, 2009, 05:56:28 pm »
It looks realy nice!

The BSD license is compatible with GPL, so no problem there.

Alvaro will soon tell you how to add a new view for the calendar.

Cheers.

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Timeline Display for Workspaces
« Reply #6 on: April 22, 2009, 10:42:12 am »
Hi,

In order to add a new view for the calendar you have to:

1) Add a button in the calendar toolbar (public/assets/javascript/og/CalendarToolbar.js)
    i) On line 56, add a new object to topToolbarItems like this one:
Code: [Select]
    timeline: new Ext.Action({
        text: lang('timeline'),
        tooltip: lang('timeline'),
        iconCls: 'ico-timeline',
        handler: function() {
            cal_actual_view = 'timeline';
            var date = calToolbarDateMenu.picker.getValue();
            changeView(cal_actual_view, date.getDate(), date.getMonth() + 1, date.getFullYear(), actual_user_filter, actual_status_filter);
        }
    }),
    ii) After line 293, add after the entry for view_date:
Code: [Select]
    this.add(topToolbarItems.view_date);2) Add an action timeline() to the EventController (application/controllers/EventController.class.php)
3) Add a view for the timeline (application/views/event/timeline.php)
To include the toolbar in the view you have to define a <div> like this
<div id="calendarPanelTopToolbar" class="x-panel-tbar" style="width:100%;height:30px;display:block;background-color:#F0F0F0;"></div>
and then this javascript code:
var ogCalTT = new og.CalendarTopToolbar({
   usersHfId:'hfUsers',
   companiesHfId:'hfCompanies',
   renderTo:'calendarPanelTopToolbar'
});

also need to include js files:
require_javascript('og/tasks/TasksTopToolbar.js');
require_javascript('og/CalendarToolbar.js');
require_javascript('og/CalendarFunctions.js');
require_javascript('og/EventPopUp.js');

and set values for variables (like it's done in viewweek): user_filter, status_filter, year, month, day and ogCalendarUserPreferences.

If you have any questions don't hesitate to ask,
greetings

max

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Timeline Display for Workspaces
« Reply #7 on: April 22, 2009, 11:14:29 am »
love your micro-tutorials.
will see into it one of the next days

ras2000

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • Proremus
Re: Timeline Display for Workspaces
« Reply #8 on: April 24, 2009, 10:24:17 am »
I fell across this question while searching for help on adding an icon to the top toolbar in tasks.

I'd like to make it possible to assign several tasks to one user, complete and uncomplete multiple tasks, and a few other things.

I tried doing the things mentioned here in TasksTopToolbar, but I keep getting the error "og.taskstoolbar is not a constructor".

What am I doing wrong?
If you are what you eat, then I'm fast, cheap and easy.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Timeline Display for Workspaces
« Reply #9 on: April 24, 2009, 01:55:17 pm »
Have you added the required javascritps, like this:
Code: [Select]
require_javascript('og/tasks/TasksTopToolbar.js');?

ras2000

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • Proremus
Re: Timeline Display for Workspaces
« Reply #10 on: May 07, 2009, 06:15:41 am »
That was it. Thanks!
If you are what you eat, then I'm fast, cheap and easy.

cguyer

  • Newbie
  • *
  • Posts: 33
    • MSN Messenger - colby_guyer@hotmail.com
    • AOL Instant Messenger - excag03
    • Yahoo Instant Messenger - excag18
    • View Profile
    • TIU11
    • Email
Re: Timeline Display for Workspaces
« Reply #11 on: May 14, 2009, 03:24:16 pm »
looks way cool

andy.hoyle

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Timeline Display for Workspaces
« Reply #12 on: May 22, 2009, 09:40:53 am »
alvarotm01 could you explain step 2?

max

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: Timeline Display for Workspaces
« Reply #13 on: August 02, 2009, 06:56:04 am »
gooroos,
I have to admit that I'll never ever find the time to integrate this feature myself.

But could you imagine doing it? Would it make sense in your invisible roadmap? Would you accept it as a job request?

max

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: Timeline Display for Workspaces
« Reply #14 on: August 04, 2009, 10:12:09 am »
...your invisible roadmap...

Ha!  ;D We don't want to make it invisible. We just can't seem to stabilize it/agree/find time to write it down.
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.