January 2013

Navigate to Waze from Drupal

  1. Create a new View based on content
  2. Add a Block display type
  3. Add a contextual filter to it with default value as Content ID from URL
  4. Add the lat/long fields and exclude them from display
  5. Add a Global Text area and in the output of it use
    <a href="#" latitude="[latitude]" longitude="[longitude]" class="waze">send to waze</a>
    where [xxx] is the placeholder for the latitude and longitude you have added.
  6. Save the view
  7. Now add this view via the Structure -> Blocks.