Drupal Planet

07 Apr

Setup Eclipse to work with your remote server and Drupal plugin

in Drupal, Drupal Planet, Drupal Planet, eclipse, RSE

Very often we work on projects that are hosted on a remote server. There are multiple ways to work on the remote files:

1. ssh into the remote machine and use an editor like vi or emacs to edit the files

2. Develop on your local machine and FTP every change

The second choice is preferable if you want to use an IDE or if the conenction to the server is slow.

However, there is a 3rd approach, that combines the above two. If you are using Eclipse or NetBeans as your editor, then you can connect your editor to the remote server over FTP. I will only cover Eclipse since that is what I use. Read more »

08 Mar

thegateway.org and 10jumps deliver skills for 21st century

in Cloud, CloudComputing, Drupal, Drupal Planet, Performance

The Gateway to 21st Century Skills (www.thegateway.org) is a semantic web enabled digital library that contains thousands of educational resources and as one of the oldest digital libraries on the web, it serves educators in 178 countries. Since 1996, educational activities, lesson plans, online projects, and assessment items have been contributed and vetted by over 700 quality organizations.

  Read more »

17 Jan

Create the custom autocomplete field

in Drupal Planet

Create the custom autocomplete field using the custom module.
How to create a custom autocomplete form and to get the user names or or anything else?
Here is the example.
/**
*Implementation of hook_menu().
*/

$items['custom_automplete_form'] = array(
'title' => 'Custom autocomplete form',
'page callback' => 'drupal_get_form',
'page arguments' => array('custom_autocomplete_form'),
'access arguments' => array('access autocomplete'),
'type' => MENU_NORMAL_ITEM
);
/**
*Implementation of function custom_autocomplete_form()
*/ Read more »

23 Dec

thegateway.org launched

in Cloud, Drupal, Drupal, Drupal Planet, Performance, planet drupal, Scalability

About thegateway.org:

The Gateway has been serving teachers continuously since 1996 which makes it one of the oldest publically accessible U.S. repositories of education resources on the Web. The Gateway contains a variety of educational resource types from activities and lesson plans to online projects to assessment items.

The older version of the website was on plone. The team hired us to migrate it to Drupal. It was an absolutely right choice to make. Given that, with Drupal comes a lot more benefits. Read more »

18 Dec

Modify views filter query with hook_hook_views_query_alter

in Drupal, Drupal Planet, Drupal Planet, exposed filter, exposed filter, search, search, views, views

If you are familiar with Drupal Views, you might have come across a very nifty feature called exposed filters. If you expose one of the fields as a filter then views provides a widget and a search option, where the exposed field can be searched. There is good video to learn about filter here.

However, we needed to extend the functionality so all the fields of the content type are exposed as  ‘searchable’ fields, not just the exposed fields. If we expose every fields explicitly, then the views filter will create a textbox for each field, which is not pretty. So in our example, we wanted to search ‘Person’ content type. And if the user entered either the first name, last name, address, of any of the values for the fields in the Person content type, a result would be returned. Read more »

10 Nov

Install and configure Drush on Mac OSX

in Drupal, Drupal, Drupal Planet, Drupal Planet, drush

Drush is a powerful shell for Drupal. It can many developer tasks really easy to manage from the command line. If you are installing it on Mac OSX, there might be a step or two which you have to perform for Drush to work correctly.

If you have pear or wget on your machine, then the process would be straightforward as described on the Drush site. However, if you are manually downloading the Drush then:

1. Download and untar the Drush in a directory outside your Drupal. Read more »

25 Oct

New and noteworthy in Drupal 7 - View Modes

in Custom View Mode, Drupal, Drupal, drupal 7, Drupal Planet, Drupal Planet

 

Drupal 6 offered two ways to display a node - teaser and full mode. However, There might be custom display types required - e.g. RSS display, search result or even home page display. Drupal 7 offers Custom View Modes to achieve custom rendering of the nodes.

You can create new view modes very easily using code or a module like Entity view modes

I will provide an overview of the code required to create a new view mode and defining a new node.tpl to display the node in the newly defined mode Read more »

02 Jul

AHAH forms in Drupal

in AHAH forms, development, Drupal, Drupal, Drupal Planet, Drupal Planet, forms

AHAH is a way to allow developers to add new form elements to an existing form (on a page) asynchronously, without reloading the page again. Please refer the detailed fapi on AHAH.

The main steps for creating an AHAH form are:

1. Attach the AHAH property to a form element. (Not all form elements support AHAH)

2. Declare a callback function which should be called 

3. Implement the callback function Read more »

02 Apr

Drupal- SAP integration continued: SAP ES Workplace perspective

in Drupal, Drupal Planet, Drupal Planet, Drupal SAP integration, SAP, SAP Workplace

SAP ES Workplace: An awesome site for understanding and testing all SAP delivered services:

 

SAP has a site called "ES Workplace" - Enterprise Services Workplace where all the ES delivered by SAP are consolidate in one place. The aim is to improve adoption of these services and for learning and testing purposes. Read more »

28 Mar

Setup your own Drupal in the Amazon EC2

in Amazon, AWS, Cloud, CloudComputing, Drupal, Drupal, Drupal Planet, Drupal Planet, ec2, setup

Amazon AWS + Drupal

(Some familiarity with Amazon AWS is assumed.)

I have always wanted to setup a high performance Drupal on an AWS EC2. There are several advantages of running your website (or web application) on the AWS. Amazon EC2 creates and provisions virtual Linux (or Windows) servers for you and charge you an hourly rate for usage.

With AWS, it becomes easy to distribute and share the Drupal image with others. And of course it is much easier to scale and is definitely cheaper. You can have different virtual servers running the search engine, database and application servers, therefore all scaling independently of each other.

With the introduction of Micro instances and better yet, free micro instances, the barrier to entry for a new user has really dropped. 

I assume you have or can create an Amazon AWS account and use their management console. These aspects are very well covered in Amazon's site and I will not get into the details of creating an account, etc. Amazon has done a great job of creating the documentation and tutorials for getting started.

I will show how to:

1. Setup a LAMP stack on Ubuntu

2. Setup Drupal on the LAMP stack

3. How to install phpmyadmin

4. Configure the database to reside in the EBS instead of the ephemeral instance storage.

copyright 2012 10jumps Llc.

copyright 2012 10jumps LLC.