Drupal 6

Drupal 6

By peterm, 10 August, 2009

Tags

Two methods for inserting a jQuery snippet.

Method 1 - In the Views UI, navigate to Basic Settings > Header. In the Header, you can insert a jQuery snippet wrapped with <script> tags. This example sets links to open in a new window and provides advanced row striping for a table of data.

$(document).ready(function() { // override the anchor to open links in new window $('td.views-field-title a').click(function() { window.open(this.href); return false; }); // colorize the rows with zebra striping and highlighting $('#tpp-listing-2').colorize(); });

By peterm, 9 April, 2009

Tags

For the past several months, I've been working on a project to bring the Title and Pay Plan (TPP) into a more useable format. The request goes back several years to the time of the Business Transformation Program, but for a variety of reasons wasn't able to come to fruition as a web application. The TPP is where the campus tracks salary information for all classifications. Contracts change over time, so we needed a method to help the classification and compensation staff manage this complicated and data intensive material.