Extend the structure of the site by way of content models, data storage, field types, and navigation, so it is more understandable to users.

Picturefill Formatter

This module creates a field formatter for image fields which will output the field to be used with the Picturefill JS Library to give a site responsive images.

XSL Formatter

A field formatter that runs given XML content (pasted data, linked URL or uploaded file) through a defined XSL stylesheet before rendering.

When enabled, this provides an additional field formatter available through 'manage display' for use entity displays or views. The result is then shown in the page and managed like any other field display.

The data source can be:

  • a textarea field which contains the raw XML.
  • a link field defining a remote or filesystem data source.
  • A file field where you can upload an XML file directly.

Configuration options on the display widget will allow you to choose or upload the XSL that should be run over it, on a per-field basis.

Leaflet GeoJSON

Leaflet GeoJSON powered map

Leaflet GeoJSON is a set of modules for creating Leaflet maps backed by GeoJSON data and leverage a bounding box strategy.

Why use Leaflet GeoJSON?

The Leaflet javascript library and its Drupal integration module are great tools for providing mobile-friendly, interactive maps based on your data. One benefit of combining Leaflet with Views GeoJSON is that you can leverage a bounding box strategy. Here's a definition from the OpenLayers site:

The BBOX strategy requests data within a bounding box. When the previously requested data bounds are invalidated (by browsing to some area not covered by those bounds), another request for data is issued

A standard use case goes like

  1. Create a GeoJSON feed using the Views GeoJSON module.
  2. Add the bounding box argument to the GeoJSON view.
  3. Use a leaflet map preset defined by the Leaflet module, in code or one of the integration modules.
  4. Put them all together using the Map pane CTools content type plug-in (7.x) or Page Manager (8.x)

Pages

Subscribe with RSS Subscribe to RSS - Site structure