While customizing COD for one of our clients at Mediacurrent, we had a request to highlight sessions based on track in the schedule view. This particular use case had tracks that were not always in the same room and needed the ability for users to quickly visualize the tracks of interest by clicking on the track name, which would result in the appropriate cells being highlighted. COD currently uses a CCK text field for tracks on the Session content type which I modified with the PHP option to pull in from a vocabulary associated with the Event (via an added nodereference field). I'm including a small jQuery file that accomplishes the highlighting but it will need to be modified for out-of-the-box COD users. It assumes that the session tracks are printed on the schedule page (either via Views, theming, or Panels) and are printed as links. They are not required to be taxonomy terms as we modified them. In our case, the use of taxonomy allows graceful degradation by taking users to the taxonomy page which lists the sessions if javascript is not available or impractical. It would also be useful if organizers were displaying BOF's that had the same terms as they would also be highlighted. If there is any interest, I can post additional code changes we used to accomplish this.

This javascript simply reverses the regex used in cod_session.module to generate track classes to search and add a highlight class to the selected track when clicked. drupal_add_js() needs to be called in either cod_session.module or in the theme as well.

CommentFileSizeAuthor
cod_session.txt504 bytesbrentratliff
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ezra-g’s picture

Version: 6.x-1.0-alpha2 » 7.x-1.x-dev
Status: Needs review » Needs work

This is definitely an awesome feature!

This needs to be re-rolled as a patch so that it can be integrated into the codebase. Let's get this into the D7 version!

brentratliff’s picture

Agreed about D7. It will depend on how the session tracks are identified (i.e. fields or taxonomy). Once it's nailed down, I can write the jQuery.

DyanneNova’s picture

Title: Add jQuery session highlighting to Session Schedule pages » Add track filtering to Schedule pages
Component: cod_session » cod_schedule
Assigned: brentratliff » Unassigned
Issue tags: +SprintWeekend2015

It would be great to get track filtering in. We have it for Proposed and Accepted sessions pages, but not for the Schedule page at the moment.

The tracks are set up as taxonomy terms, with the vocabulary set by the event.

japerry’s picture

Status: Needs work » Needs review
Issue tags: +cod 7.x-1.0 radar

This is in dev, test for 1.0

DyanneNova’s picture

Status: Needs review » Needs work

The plan is to get FreeWall in to COD for use in layout and filtering on Proposed Sessions, Accepted Sessions, and the Schedule page.

We have code for this on events.drupal.org, but using Isotope instead of FreeWall. We need to replace Isotope because of the odd commercial licensing.