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

Fixtures

The fixtures module imports content created in YAML files. Nodes, menu items, taxonomies and other initial content are created as a batch.

At this point the menu system and nodes are implemented, but require improvement and support for custom fields. This is a work in progress.

Example in sites/all/fixtures/menu.main-menu.yaml:

custom-menu:
  title: Custom menu
  description: A custom menu, used for main navigation
  items:
    item-about-me:
      title: About me
      link: general
      items:
        item-general:
          title: General
          link: general
        item-resume:
          title: Resume
          link: resume
          description: A single-line description

Prerequisites

The Libraries module must be installed together with the Spyc library in the folder sites/all/libraries (or subsite folder). Spyc is a loader/dumper library for YAML.

If you want to import the basic content, move the files in the examples folder to sites/all/fixtures folder. Edit them to match your specific needs and run the command drush fixtures-all

Drupal.org Crawler

Crawls Drupal.org site for information on issues, users, etc...

Private Dynamic Stream Wrapper

Provides a file stream wrapper to store private files that can be altered when downloaded.
The file stream wrapper mimics the functionality of the Drupal Private file system with the addition of the capability to alter the file's content when it is downloaded.

Sponsored by Commerce Guys

Raw Mapping

Convert data loaded into a node by simple paste (or Feeds or data import) into better structured data.

A simple text field may be provided for a list of items to be dropped into
and this tool would be able to convert that list into individual fields
on the same entity.
The original data can optionally be discarded onve converted.

The UI will be for a simple textarea field (eg named people_raw)
to have an additional setting on the field settings page that refers
to the structured data field (eg a multiple textfield 'people')

A separator (eg newline or comma) is defined there.

Running the process (through VBO or similar) would shift the data between those fields.

Failed to find even a utility for copying data from one field to another on d.o.
May be possible with rules but that's heavy for this.

Usage

A textarea field on a content type will have extra options shown on the field configuration settings.
Which target field to transfer data into, and what separater to use to do it.

The target field should be something like a textfield with multiple values enabled.

Now you can paste a newline-separated list into a text field, then press the "raw mapping" button, and that raw data in the textarea will be placed into many reows in individual text fields.

Entityreference Autocreate

A deliberately simple way to invent nodes on the fly in order to refer to them via entityreference.

Just type a title into an entityreference autocomplete field, and if no match is found, a placeholder of that name will be created silently, instead of complaining.

This is a simplification from other create-and-reference solutions as it assumes *no* action on the users part. Of course, it also does not allow the editor to add any *more* detail about the newly created target entity at the time, but if you want that, I endorse references_dialog.module.

This utility co-operates interestingly with feeds.module, as you can import items that refer to other items by name, which will be linked to without intervention.

Pages

Subscribe with RSS Subscribe to RSS - Developer tools