Drupal tips

Command line Drupal install and update script for multi-site hosting

Maintaining a Drupal site, or a collection of sites is much easier if everything is kept completely separate--Drupal core, contributed modules, and the site itself.
This is even more important if multiple sites are hosted on the same server. Drupal's own multi-site support can be a nightmare to maintain, believe me! (e.g. when you want to upgrade modules or core).
A must simpler and easily supported configuration is to keep everything separate and to use symbolic links to tie it all together. For example, I keep:

Technical Notes

These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category.

JavaScript MVC Frameworks

A new way of creating a website is using what is sometimes called a “headless” site, with the front end being served by an MVC framework (Model View Controller).

Headless Drupal means using Drupal purely for content creation and management and feeding all the data in JSON format to a JavaScript front end.

Resources

Here are some links that compare the two leading frameworks, Angular and Ember, plus some others like Backbone.

Installing Open Atrium

Stragegy

  • download no-core version
  • replace all modules in repo with symbolic links
  • create standard Drupal 7 site
  • link openatrium directory into profiles/openatrium
  • install site using openatrium install profile
dget install openatrium 7.x-2.19-no-core d7paths
grep memory_limit /etc/php.ini       #should be >= 256M
grep max_allowed_packet /etc/my.cnf  #should be >= 32M (add under [mysqld]}
  • Go through OA contrib modules and any we have already replace with the one in the repo
mod=/opt/dr7/contrib/modules
oa=$mod/openatrium

function repoa {
  rm -Rf $oa/modules

Drupal and Facebook

Installing RedHen CRM

1. Install modules on server

dget install redhen 7.x-1.7 d7paths
dget install message 7.x-1.9 d7paths
dget install relation 7.x-1.0-rc5 d7paths
dget install registration 7.x-1.3 d7paths
dget install redhen_membership 7.x-1.x-dev d7paths
dget install entityreference 7.x-1.1 d7paths
dget install addressfield 7.x-1.0-beta5 d7paths

  • assume entity, ctools already installed

2.

Drupal performance notes

Here are some useful links:

In case the problem is the underlying system performance:

RedHen vs CRM Core comparison for Drupal CRM

Here are some resources for comparing the two systems:

Add Zurb Foundation theme to Drupal 7 site

1. Install necessary modules and themes:

site=/home/mysite
dsite add $site zurb-foundation -m theme
dsite add $site views_foundation
dsite add $site jquery_update

Notes

Optional modules

Installing Compass on Drupal server

Installing the theme is the easy bit. What is much harder is setting up automatic SCSS recompilation.

  • The README.txt file suggests using a full-blown installation of node.js just to manage this.
  • A much more lightweight solution is to use compass
Syndicate content