Dojo JS Framework gotchas

This page is for those trying to use the Dojo framework and associated widgets on Drupal pages and hitting issues. It's intended for genuine gotchas - you have checked your syntax, checked your markup, amended any templates with the required divs, the code works perfectly when on a static HTML page, etc and everything checks out. But you still cannot get your Drupal version to work.

Note that for Drupal 7 (at least), you should have no issues or obscure steps to take to load dojo on a page - jQuery and dojo should live happily side-by-side.

Basic Auth

The Basic Auth module takes a username and password out of the request and authenticates them against Drupal.

It implements the HTTP Basic protocol, in which the username and password are encoded and added to the Authorization header within the request. You can find further details about how it works at its section in Wikipedia.

Using the Juicebox views style plugin

Users who want to create Juicebox galleries from multiple nodes/entities/files, and leverage the flexibility of views to organize everything, can use the Juicebox views style plugin.

The notes on this page assume you are using a 7.x-2.x version of the Juicebox module. Not all options/features outlined here will be available in 7.x-1.x, though the same general concepts still apply.

Using the Juicebox field formatter

Users who want to add Juicebox galleries to individual nodes/entities can use the Juicebox field formatter.

The notes on this page assume you are using a 7.x-2.x version of the Juicebox module. Not all options/features outlined here will be available in 7.x-1.x, though the same general concepts still apply.

Installing Drush on Arch Linux

Arch Linux users can install Drush through the Arch User Repository. Using your favorite AUR helper, install the drush package. For example, if using yaourt:

yaourt -S drush

If you are working with Drupal core development and need the git version of Drush, install drush-git. Example:

yaourt -S drush-git

How to use Xdebug and PhpStorm with VDD

How to use Xdebug and PhpStorm with VDD

Starting from version 1.3 VDD supports out of the box Xdebug configuration. You can simply start you virtual environment, open your project with PhpStorm and start debugging.

Preparations

To make your debugging more comfortable you should install Xdebug helper extension in your browser. I'll use Google Chrome in this example.

Pages

Subscribe with RSS Subscribe to RSS - Needs copy/style review