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 »

15 Jan

Drupal 7 views 3 - filter for users

in Drupal Planet

If you are new to Drupal 7 and are creating views, there are lot of changes in what is exposed in the filters. One of the reasons is because Drupal 7 uses views 3.

One example is if you want to create a view of content and you want to add current user as a filter so the uses only see their content.  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.

22 Mar

SAP and Drupal Integration

in Drupal, Drupal enahancements, Drupal Planet, Drupal Planet, Drupal SAP integration, Drypal, SAP, SAP HR, SAP integrations, webservices

At 10jumps we use Drupal heavily. Drupal offers  very flexible, robust and rich UI experience. It is the platform we feel confident of proposing to our clients for their websites.

One of our recent research work at 10jumps alongwith Acquia was to tinker around with Drupal and SAP integration. Read more »

19 Feb

Are you looking to get a new website that you can manage yourself easily?

in 10jumps, Drupal, Drupal Planet, Drupal Planet, drupal usage, why drupal

Why should you know about Drupal?

Website is mandatory. Every kind of business small, medium, big or humongous will have to have a website. It’s like the first thing you do after you register your company. Gone are the days when the business owners needed to be convinced of why a website will help in building the brand, improving sales, boosting marketing and the bottom line. Read more »

copyright 2012 10jumps Llc.

copyright 2012 10jumps LLC.