The view settings allow for multiple fields (other than start and end date) to be passed to the timeline. However, only the first two fields listed in the view are actually passed. For example we have node title and the body field as the first two fields listed in the view, but when we add another field (i.e. a text field for event type) to be passed that information is not available to the timeline view.

We can force it to display by moving this "third field" above node title and body in the view listing of fields. However, that that results in one of the other two fields no longer displaying.

Is there a way for the data for more than two fields to be passed into the view?

Many thanks

CommentFileSizeAuthor
#3 timeline-ckk-multi.1.patch2.67 KBfranskuipers

Comments

jmiccolis’s picture

Hi Ric,

Currently there is not a good way to do this without getting your hands in the code. The module simply doesn't support what you are describing. ...I think that it would be great if it did however, any chance you take a crack a coding?

:)

- Jeff

Ric’s picture

Title: passing more than 2 fields to the timeline » re: passing more than 2 fields to the timeline

Hey Jeff,

Would love to. Tho' given my lack of skills in this area, I am more likely to create more harm than good.

I am happy to ask around. Would you know what files would need to be modified to achieve this?

Thanks for your efforts in supporting the timeline.

Ric

franskuipers’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new2.67 KB

I have given it a try, but i am not sure how it should be implemented. We can give only 3 fields to the timeline API to show up in the bubble:

  • Title
  • Body
  • Image

The patch as attached will show extra fields in the view if they are labeled as title, body or image . If you have more than one field labeled as body or title I concatenate both fields.

Possible problems I see:

  • I just concatenate, I hope your text fields are showing up like u want (I think we should put some

    tags around the tag fields, but will that be working always?)

  • Do we really need 2 or more title fields?
  • Do we want the possibility to display node->teaser and add a CCK field? I didn't include that yet

Comments welcome.

PS: the image is NOT working because the image field is not showing up correct in the views item).
PS2: the patch is against the 5.x BRANCH, if you want the code in 4.7, go ahead

jmiccolis’s picture

Version: 4.7.x-1.0 » master
Status: Postponed (maintainer needs more info) » Fixed

Hi Gents,

I've been putting some work into the Drupal 6 version of timeline (CVS HEAD) and I think we can pretty much just close this issue. The D6 version will automatically use the first two time-related fields for start and end dates. Then first non-temporal field it will use as a title, and any additional fields will be concatenated together and be used as the body text for the bubble. This allows for the kind of configurations requested above.

- Jeff

Anonymous’s picture

Status: Fixed » Closed (fixed)

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