drupal

Varnish

Accelerate your Drupal/Pressflow site using Varnish

The primary reason for switching to Pressflow is to use an HTTP accelerator such as Varnish
Apache Configuration
Adjust your Apache configuration to server the Drupal site on port 8080. Edit your Apache conf file and add:

Listen 8080
NameVirtualHost *:8080

Restart Apache and make sure you can access your site on that port.

Varnish Configuration

Pressflow

Pressflow is a distribution of Drupal with integrated performance, scalability, availability, and testing enhancements. It can integrate with a web proxy such as Varnish

Add Pressflow base to your Drupal SVN repo
Assuming you have your Drupal repo checked out in /tmp/drupal, create a base folder for Pressflow:

cd /tmp/drupal
svnmkdir pressflow
svn commit -m "Pressflow folder added."

Add/Upgrade the current version of Pressflow to your Drupal repo
Then download the current version of Pressflow and load it into the repo:

cd /tmp
wget http://launchpad.net/pressflow/6.x/6.20.97/+download/pressflow-6.20.97.tar.gz
tar zxf pressflow-6.20.97.tar.gz
rm -f pressflow-6.20.97.tar.gz

Technology:

Get tid

$storyVid = <vid of the taxonomy you want to match the term to>
$storyTerms = taxonomy_get_term_by_name($termName);
foreach ($storyTerms as $storyTerm) {
  if ( $storyTerm->vid != $storyVid ) {
    $storyTid = $storyTerm->tid;
  }
}

Technology:

Rebuild teasers


$contentType = 'node_type';
$nodeList = db_query("SELECT node.nid AS nid FROM node node WHERE node.type in ('$contentType')");
while ($node = db_fetch_object($nodeList) ) {
$nodeId =$node->nid;

$nodeRevList = db_query("SELECT `nid`, `body`, `teaser` FROM `node_revisions` WHERE `nid`=$nodeId");
while ($nodeRev = db_fetch_object($nodeRevList)) {
//echo $nodeRev->teaser . "";
$teaser = node_teaser($nodeRev->body,NULL, 200);
//echo $teaser;
db_query("UPDATE node_revisions SET teaser = '%s' WHERE nid = %d", $teaser, $node->nid);
$i++;

Technology:

Snippets

Various PHP snippets for manipulating Drupal

Technology:

Automatically tagging content

Comparison of Automatic Tagging Tools for Drupal.

  • Alchemy
    AlchemyAPI provides content owners and web developers with a rich suite of content analysis and meta-data annotation tools.
  • OpenCalais
    Calais is a rapidly growing toolkit of capabilities that allow you to readily incorporate state-of-the-art semantic functionality within your blog, content management system, website or application.
  • tagthe.net

Nodequeue

Allows an administrator to collect nodes in an arbitrarily ordered group.

Technology:

960 Grid System

The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels.

960 Grid System

Tutorials on 960 and Grid-Based Design

Technology:

Load testing a (Drupal) web site

Workflow

The workflow module allows the creation and assignment of arbitrary workflows to Drupal node types. Workflows are made up of workflow states. For example, a workflow with the states Draft, Review, and Published could be assigned to the Story node type.

Technology:

Pages

Subscribe to RSS - drupal

Recent Updates

  • 9 months 1 week ago
    1.27.2 update
  • 9 months 3 weeks ago
    Drupal 10/11 config
  • 9 months 3 weeks ago
  • PHP
    9 months 3 weeks ago
    PHP 8.3.11 and AlmaLinux
  • 9 months 3 weeks ago
    New version of Pound
Error | Production Monkeys

Error

The website encountered an unexpected error. Please try again later.