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

Content as JSON

Summary

This module provides an easy way to retrieve data in JSON format through a menu callback. Compared to Services this module focuses on JSON and doesn't need configuring of resources, endpoint or authentication.

It's low level and most easily used with AJAX to get data of the following content types:

  • node
  • menu
  • comment
  • taxonomy_term
  • taxonomy_vocabulary
  • custom_data

Each of these options provides a hook to alter the data-output, look at phpDocs for implementation examples. If no hook is provided, the default object will be returned (can be huge!)

A node hook example can look like this:

/**
 * Implementation of contentasjson_get_node() hook
 * @see _contentasjson_get_node();
 */
function mymodule_contentasjson_get_node($node) {
  $node_array = array();
  $node_array['id'] = $node->nid;
  $node_array['title'] = $node->title;
  
  return $node_array;
}

AJAX Example

To retrieve data with the contentasjson module you can use AJAX. The following example shows how to get the data with jQuery:

jQuery.ajax({
  type: "POST",
  url: "contentasjson/node/1",
  success: function(data)
  {
    console.log(data);
  }
});

Always fill in all values within the -url- parameter. There are 3:

Inline Video

Wysiwyg plugin to easily insert YouTube and Vimeo video's into content.

Page Not Found Reports

Purpose

This module adds a couple of admin reports to review the most common 404 errors on your site.

When a redirect module is available, these reports include the option of adding or updating a redirect for paths that have resulted in 404 errors in the past (thanks to benclark). For D6, this uses Path Redirect. For D7, this module was moved to Redirect.

Why?

By default, Drupal handles all requests coming into your website for files that don't exist on the disk. This means that Drupal runs every time someone tries to visit a page that doesn't exist, in order to show your custom 404 page.

More importantly, this also means that Drupal runs every time some other page or email tries to include a missing image, CSS, or other file from your site. And since it misses any caching you might be using, it can result in a high server load on popular sites. This tends to be a problem when moving an existing site into Drupal: it's not uncommon to overlook some directory of images that need to be migrated over because (for example) the existing mailing list templates use them.

Py

This module brings Python-like functions to Drupal. Do not install this module unless another module you are using requires it or you're interested in contributing to this project.

Feature Server (fserver)

This module allows you to share features and custom modules on your own website. It lets you create projects and releases, and it produces an update XML feed compatible with the update module in core. In a way it's a highly simplified version of the project module.

Basic Documentation

D7 Release

Please dont use the D7 release, its pretty buggy yet and we dont have an active maintainer for the branch, which is already pretty far behind the patches on the D6 branch. I will consider completly removing the current D7 port, reinitiating it once again from the current D6 branch, if time comes / maintainer arrives.

For now, you can also host D7 modules on a D6 based FServer!

Main improvements and fixes

  • Supports building release based on the new tags ( 6.x-2.x for example)
  • Added support for SCM information in the update feed

Pages

Subscribe with RSS Subscribe to RSS - Developer tools