Drupal 7

Drupal blocks as Edge Side Includes

Drupal blocks as Edge Side Includes
Edge Side Includes (ESI) are a way to tell your reverse proxy (e.g. Varnish) that some parts of the page should get some special attention. For example a shorter expire time (TTL) or if they should be cached by USER, PAGE or by ROLE. If you know your site well enough, you can provide some advanced caching for authenticated users this way.

Count views results

Here's a short snippet howto create custom result counters with index for your views in Drupal 5, Drupal 6 and Drupal 7.

Drupal 7 see here.

An example of this code could result:

Showing 21 - 30 of 46 results.

A very common usage, but not available out-of-the-box in Views 1 or 2. You will need to theme a bit using some code snippets. Here's how you can do it:

Drupal 5 - Views 1


Subscribe to RSS - Drupal 7


This is the company blog of
Drupal specialist Merge.nl

We are located in Breda (Netherlands) and build websites using Drupal. More about us.

Content on this blog is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.

Creative Commons License

Recent Comments