Empower developers with tools that assist with developing and debugging the frontend or backend of the site.

Addressfield Tokens

Overview

The addressfield_tokens module extends the addressfield module by adding full token support. It also adds some convenient addressfield formatters and provides a webform addressfield integration.

Features

Tokens

  • Attaches tokens to every addressfield type within every entity.
  • Creates a token for every addressfield component, including name, organization, thoroughfare, premise, locality, postal_code, and country.
  • Allows token names to be configured for your locale (e.g. "thoroughfare" could be displayed as "Street 1" in the token table).
  • Creates additional tokens:
    [addressfield:city-state]:
    City, State
    [addressfield:full]:
    Full address with formatting.
    [addressfield:text]:
    Full address without formatting, all on one line.
    [addressfield:country-name]:
    The full name of the country.
    [addressfield:state-name]:
    The full name of the state (applicable for countries where states have abbreviations selectable from a select list).

Portable path

Input/output filters to store/restore paths using either stream wrapper notation or a managed file ID token. This module does two things:
- when content is saved, it will store URLs in text fields in a portable fashion.
- when content is rendered, the input filter will replace the stream wrapper URL or file ID token with a relative URL.

This can be easily used with the Insert module which inserts an absolute or relative URL. On save of the content, this module will replace the URL with a path using stream wrapper notation or a file ID token.

The motivation behind this is to store URLs in text fields (e.g. node body) in a portable fashion so that a database can be ported across environments and domains. For example, if the environment consists of development, stage, and production URLs like:

- foo-dev.example.com
- foo-stage.example.com
- foo.example.com

with files stored in the public files directory which may be named the same as the domain like:

- sites/foo-dev.example.com/image
- sites/foo-stage.example.com/image
- sites/foo.example.com/image

This would be a typical setup using a provisioning system like Aegir which, during site creation, allows for specification of the domain name but not the directory name.

Web Performance

Note: Do NOT use. Everything in this sandbox was contributed to the Pre project

Piwik Rules

This module adds an action to rules to track goals in Piwik.

Tic Tac Toe

Tic Tac Toe

This module implements an interactive Tic Tac Toe game

It can present a Tic-Tac-Toe board that is updated using AJAX requests upon each user move.

Pages

Subscribe with RSS Subscribe to RSS - Developer tools