Limited Node Reference

Component type

module

Maintenance status

Development status

Downloads

461

Component created

Component changed

Limited Node Reference is a CCK node reference widget that allows users to select from a views-driven set of nodes that is limited by a given number of results and arguments when adding new content.

Useful if you want to provide users with X random nodes to choose from when adding content with out interfering with their ability to choose from a larger set of nodes when editing content.

Weight Range

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

This module extends the range of weights available for organizing long lists of content, for example book tables of contents or Ubercart attribute options. If you are trying to re-order items in a list and are running into the limits of the default -10 to 10 range of weights, you may benefit from this module.

After installing the module, weights will automatically range from -30 to 30. To change the range extension factor from 3 to some other value, visit admin/settings/weight_range.

Allocated Seating

Component type

module

Categories

Maintenance status

Development status

Downloads

2200

Component created

Component changed

This module is seeking new co-maintainers, please chime in if you have time to help push it forwards.

Overview

Allocated seating provides two field types - an allocated seating designer and a seating plan.
These fields can be used for various purposes - eg the designer can be used on a node edit form to allow users to create a seating plan for an event whilst the plan can be used as part of a checkout workflow to allow customers to nominate which seat they wish to book.

Underscore.js

Component type

module

Maintenance status

Development status

Downloads

10482

Component created

Component changed

Provides Library API access to the Underscore.js JavaScript library.

Features (7.x-2.x)

  • Makes Underscore.js available to other modules and custom code via the Library API
  • Provides a drush command (underscore-download) to download and install the latest version of the library

Usage (7.x-2.x)

After enabling this module, install the Underscore.js JavaScript file:

  • Without drush: Download underscore.js and store it in your libraries directory. In most cases the resulting path should be sites/all/libraries/underscore/underscore.js
  • With drush: Run the command drush underscore-download

In your module code, add the library with libraries_load() and drupal_add_library(). If unsure where, add it in an implementation of hook_init(). Use 'underscore' for both the module and library name arguments, like this:

libraries_load('underscore');
drupal_add_library('underscore', 'underscore');

You can update your version of Underscore.js to the latest version by calling the drush command (drush underscore-download).

Upgrading from 7.x-1.x to 7.x-2.x

The 7.x-2.x branch is a rewrite of the existing module. Upgrading to the 7.x-2.x branch will require changes to your code. Notable changes to the module include:

  • The actual Underscore.js JavaScript is no longer bundled with this module. It must be downloaded and installed manually or with the drush command provided in this module.
  • The Underscore.js library is no longer enabled automatically. To use it, your code must call libraries_load() and drupal_add_library(). An example is provided in the section above.
  • Now uses the library hooks provided by Libraries API module (rather than hook_library() from core).