Blog

Drupal JSON Node API

شراء اسهم سابك go
Drupal JSON Node API
To help with a content migration project I have recently made a module that exposes all published node types, node IDs and the nodes via a very simple JSON API. There are only 3 custom functions needed to give the requesting user a list of the types that are available, the node IDs of any given type and then finally the nodes by ID. I have set this up on here as an example. Node Types NIDs of type blog This node as JSON This was just intended to be used locally when importing content to a different site with another custom module I made for easy content migration but may be of use to someone so I made a Drupal 7 version as well, they are both available for download here: Toms GitHub:/modules

JavaScript Feature Detection in Drupal Behavior

get link
JavaScript Feature Detection in Drupal Behavior
This is a very lightweight way to add feature detection to your Drupal site. Add this Javascript file to your theme and then include it in your theme.info file for the best results.  The file adds a Drupal Behaviour that adds classes to the HTML tag of the page so that you can interact better with the users browser.  The features this detects are listed below:  Flash  Sliverlight  PDF  QuickTime  Windows Media Player  Shockwave  RealPalayer  Java  This is also available to download from my GitHub account.  (function($) { Drupal. behaviors.featureDetection = {};

Tannoy Wildcats Tannoy Puma

Tannoy Wildcats Tannoy Puma
Update: I no longer need any more Tannoys, I got some i12s :) I do have 4 Tannoy Bobcats that need reconing for sale though so message me if you want them. WANTED: Tannoy Wildcats Puma, Tannoy Wildcats Lynx, Tannoy Wildcats Jaguar, Tannoy Wildcats Leopard, Tannoy Wildcats Panther. A few years ago I managed to get hold of a Tannoy Puma from the Tannoy Wildcats range of speakers produced in the 1980's. Sadly I only managed to get one and I am looking for more as these are pretty good speakers and I like the look and sound they produce. If you have for sale or know anyone that would consider selling any Tannoy Puma or any of the Tannoy Wildcats wildcats 15 inch range or the Tannoy Lynx then ple

Kodi, NAS, Torrent and VPN Pi Setup

Kodi, NAS, Torrent and VPN Pi Setup
I have just moved house and put some of my time off at Christmas to good use setting up some things on my home network to manage my XBMC/Kodi as well as providing Samba and NFS NAS for both backing up files and serving as the location of my media library, all accessible with a private home VPN connection using a couple or Raspberry Pis. The basic set up is that there is a Pi running Kodi connected to the TV in one room and then there are 2 more Pis plugged in next to the router.

Adding bundles to your xml sitemap the easy way

Adding bundles to your xml sitemap the easy way
If you have ever had to configure the Drupal xmlsitemap module for a site with lots of content types, vocabularies or any other entity types you know how frustrating and tedious it is having to edit each one of these bundle through it's own edit page to have it included in the sitemap. Having recently had about 10 sites who's sitemap settings had all been neglected and with each site having over 20 content types and other bundles that were supposed to have been added to the sitemaps I decided to make a module so I can do this all from a single page with a single form. There is no option to set the priority of each bundle on the form as this was not my concern and this is not being

Pages