ShvetsGroup

 

Tips & Resources

1 comment

Optimizing JavaScript and CSS-files in Drupal

Speeding up website loading

File compression reduces traffic from the server to the website visitors, so they can load the page faster and the server won’t send any "extra" traffic .

We'll dwell on:

  • The types of compression
  • Drupal core solution to this problem
  • Additional modules
  • Choosing the best compression method

Read (a lot) more »

0 comments

The use of MongoDB

mongo-db-huge-logo_0.png

NoSQL has recently become a buzzword in web development. Some projects use similar databases for architecture bottlenecks, while others fully migrate to them. Such databases differ from relational ones in simple architecture and high scalability. At the moment we are interested in MongoDB as one of the most popular NoSQL databases. We’ll try to highlight its strengths and weaknesses, consider some peculiarities of development, its application field in Drupal, and will try to understand the Map/Reduce term through a practical example.

MongoDB is something between a key-value storage (which is usually fast and scalable) and traditional relational databases (MySQL, PostgreSQL, etc.) that provide advanced queries and rich functionality.

Read more »

2 comments

Multistep registration form in Drupal 6

Steps

Every Drupal user is probably familiar with its registration—we’ve all been through that. Same thing with the developers—a login and password form with a "Register" clicking which starts form processing.

But things change once there’s a task to collect additional data about the user during registration. For example, you may want to know where the visitor comes from, how old he is or where he works. Pros and cons of collecting such data at the registration stage in terms of User Experience can be discussed separately, in this article we are going to analyze the technical part from a programmer's viewpoint.

So, we need to collect additional data—it means, that in addition to login and password fields the registration form will require other ones that will make the form huge. Most probably, the large number of fields will scare away the user and make him leave without clicking the button. User interface designers have found a solution to this problem—a multistep form. This form allows users to enter data step by step: this way each step features a reasonable number of fields and user doesn’t need to answer some unnecessary questions based on his previous input. In addition, the user can see the registration progress in the form of step indicator, which is also important ( "When will this end?" , "How much more do I have to fill in?" ).

How to solve this? »

Subscribe to Tips & Resources