Closed (fixed)
Project:
Timeline
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Sep 2009 at 10:11 UTC
Updated:
28 Nov 2010 at 18:47 UTC
I have timeline with arguments, I have attached this view with cck view to an node type. For many nodes i don't have timed records, but the timeline appears, the library load...
It is possible to deactivate view if the result is empty?
Comments
Comment #1
xamanu commentedThis is like this by design. I implemented the timeline this way, because the I think it is better to have an empty timeline than a blank screen (like it was in version 1.x). Ideally I'd like to print out a message on the timeline but this doesn't seemed to be supported by the SIMILE timeline libraries.
Anyway I think a nice way would be having drupal printing a little warning message that no event data is present. I will include this for the next beta.
Comment #2
ndm commentedFor me the message is no implemented by timeline.
It exists a message for empty query in the view module. Why not use this?
Comment #3
xamanu commentedI'm going to implement it soon. It will be available with the next beta version.
If you have a good idea and want to help, why don't you write a little patch? This way it would be happening sooner and I'd appreciate any valuable help on this module.
Comment #4
xamanu commentedI think the timeline should show up no mater if there is data to show or not. I feel it like a map, that would show up anyway.
The newest version (after commit #271752) now shows a little message warning that no data is available.
Comment #5
xamanu commentedtagging as fixed.
Comment #7
iparsin commentedJust use the module and have the same issue here. I agree with Felix, "Ideally I'd like to print out a message on the timeline". However, from usability stand point, I believe timeline may or may not show up when there is no data.
The best way is to leave the options to users, like "map" that you can use a default map for "empty text" when no data. If this is difficult to accomplish, I think we can go either one...
1. When no data, show timeline with warning on the timeline
2. When no data, not present timeline at all
Thank you for maintaining the module, it is cool and easy to use!