Blogs on

Drupal

knackforge blog

How to automate backup for our codebase & database

Most of the sites rely on codebase & database which we can't afford to loose. We definitely need to implement a backup procedure in that case, otherwise we may loose our valuable data due to some kind of mishap (manually delete some data by mistake, software errors, hardware errors, server compromise, etc).

We can use the following shell script to make backup (codebase and database).

First let's create the backup script file:

nano /path/to/script/backup.sh 

and add the following code:

Continue reading →
knackforge blog

Drupal 7 - Creating editable table with Form API

Introduction:

Lets think that we have a custom table to show list of records. Sometimes you might have to provide editable options for column. One simpler solution is to have a edit link and open up a form and let the user update the records. But a much more simple user experience will need inline editing of columns. Simply using theme('table') with textfields might not work since theme_table will run on the render array, your form elements will actually be rendered out to the screen, but the form won't have any knowledge of the values (as they are not technically children of the form) .

Continue reading →

How to make Apache faster for Drupal

If you are reading this blog post you must be striving to improve the performance of your site. When we speak about performance two things should be taken into account essentially.

  1. Number of requests the site is able to serve (The more, The better)
  2. Response time per request (The least, The better)

I guess it is not much needed to stress as how essential the response time plays in deciding the success of a website. Apache the prominent Web server plays a key role in this connection.

Continue reading →
knackforge blog

Setting up Aptana Studio 3 (IDE) for Drupal Development

Aptana Studio is a complete package for an open source Web Developer that works out of the box for the most. From autocomplete/intellisense, code validation, code assist, code debugging, terminal access to version control - most activities can be accomplished in a single integrated environment. Being built upon Eclipse, it can be viewed as a web developer (HTML/CSS/JS/PHP/RoR/Python) version of Eclipse & even more than that.

Continue reading →
knackforge blog

Drupal 7 and SOLR - autocompleting full node title

KnackForge has done a lot customizations on Drupal and SOLR integration. Earlier I wrote about Drupal-7-filtering-solr-results which covers limiting SOLR resutls. This is another work where we had to alter default apache solr autocomplete module to limit suggestions only to node titles. And other interesting challenge in it was to provide case insensitive search with case sensitive results and phrase based search.

Continue reading →
knackforge blog

Different ways to reset Drupal admin password

I was a part of Learn Drupal on Global Drupal Training Day!, Drupal Chennai event to deliver a talk about installation and Drupal in general. The attendees were from different genre, but majority of them were students. After the presentations, Shyamala propounded to form teams and let the student participants to try a Drupal installation and come up with a site of their own taste and novelty.

Continue reading →