drupal

Development Workflow

Dealing with the Development -> Staging -> Production workflow problem - how to update and develop a site that has content being added to it while you develop.

Technology:

Create a new website

Create a Drupal-based website using the Drupal source stored in a Subversion repository.

Create a site using your Drupal repo

mkdir /tmp/projectname
cd /tmp/projectname
mkdir branches trunk tags

Create the SVN project for your site:

svnadmin create /var/svn/projectname
svn import /tmp/projectname file:///var/svn/projectname -m "initial creation of site structure"

Adjust the repo file permissions:

find /var/svn/projectname -type f -exec chmod 660 {} \;
find /var/svn/projectname -type d -exec chmod 2770 {} \;
chown -R nobody.nobody /var/svn/projectname

Create the Trac project:

cd /var/trac

Technology:

Calais

The Calais Collection is an integration of the Thomson Reuters' Calais web service into the Drupal platform. The Calais Web Service automatically creates rich semantic metadata for the content you submit – in well under a second. Using natural language processing, machine learning and other methods, Calais analyzes your document and finds the entities within it. But, Calais goes well beyond classic entity identification and returns the facts and events hidden within your text as

Installation

cd modules/opencalais/arc_rdf
wget http://arc.semsol.org/download/2008/11/18/arc.zip
unzip arc.zip
mv arc arc2
rm arc.zip

Move the arc_rdf folder into the modules directory:

cd ..
mv arc_rdf ../

Technology:

Nodeprofile

This module builds user profiles as nodes, which opens the opportunity to use the Content Construction Kit (CCK). So it's possible to make use of the field types, which are available for CCK. The integration of the views module allows one to easily build customizable user listings or even user searches.

Technology:

LoginToboggan

The Login Toboggan module offers several modifications of the Drupal login system in an external module.

Technology:

Updating Drupal Core

We've been recommending that you use Subversion to manage your Drupal site, so these instructions are geared towards using it to upgrade.

The instructions also presume that your site can be taken offline during the upgrading process. If you've have a site that you can't take offline while the process is completed, you've got a whole other set of complicated issues to deal with!

These instructions were written based on upgrading Drupal 6.14 to Drupal 6.15.

Prepare the current site

Technology:

Installing modules with Piston

While vendor branches in a subversion repo can improve the process of upgrading modules, Piston is a great way to make things even easier.

Installing a module with Piston

cd /path/to/your/drupal/website/sites/all/modules
piston import http://<your_drupal_repo>/svn/drupal/modules/<module_name>/current <module_name>

Upgrading a module

cd /path/to/your/drupal/website/sites/all/modules
piston update <module_name>

Drupal SVN Repo

Build a Subversion repository to hold multiple versions of Drupal core, modules and themes for building your Drupal-powered websites.

cd /tmp
mkdir drupal
cd drupal
mkdir 6.x 5.x
mkdir 6.x/core 6.x/modules 6.x/themes 6.x/core/current
mkdir 5.x/core 5.x/modules 5.x/themes 5.x/core/current

Create the Subversion project:

svnadmin create /var/svn/drupal
svn import /tmp/drupal file:///var/svn/drupal -m "Initial import of Drupal repo."
find /var/svn/drupal -type f -exec chmod 660 {} \;
find /var/svn/drupal -type d -exec chmod 2770 {} \;
chown -R nobody.nobody /var/svn/drupal

Create the Trac project:

cd /var/trac
trac-admin drupal initenv

Technology:

Drupal Integration

Integrate your albums into a Drupal website.

  1. Download the latest version of the Gallery2 module, from the module's project page on Drupal.org, into your website's sites/all/modules folder.
  2. Unstuff the module tarball:
    tar zxvf gallery-5.x-2.x-dev.tar.gz
  3. Navigate to /admin/build/modules with your web browser and enable the Gallery2 modules. For basic gallery integration, you just need the Gallery and Gallery Menu components.

Technology:

Pages

Subscribe to RSS - drupal

Recent Updates

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

Error

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