Setting up a Drupal 7.7 site

First install Drupal 7.7 by downloading the necessary files, creating a database and uploading the files onto your server. Then when Drupal is setup, this is a way of configuring it to fit:

  1. enable clean-url’s
  2. extend the fields for users, such as Name, Last name, etc.
  3. list of users (for authenticated users only)
  4. custom footer message
  5. remove breadcrumb
  6. content access
  7. contact form
  8. calendar with coming events (for authenticated users only)
  9. publishing your calendar as iCal
  10. store & share pictures (for authenticated users only)
  11. store & share documents (for authenticated users only)

Ad 1 Enable clean-URL’s
Enable rewrite module by adding it to Apache, use sudo a2enmod rewrite, then edit the /etc/apache2/sites-enabled/000-default file, set AllowOverride All for /var/www and then restart Apache (sudo /etc/init.d/apache2 restart).

Then in the .htaccess add:

  • php_value mbstring.encoding_translation Off
  • php_value mbstring.http_input pass
  • php_value mbstring.http_output pass
  • php_value mbstring.encoding_translation Off
  • RewriteEngine on
  • RewriteBase /
  • RewriteCond %{REQUEST_FILENAME} !-f
  • RewriteCond %{REQUEST_FILENAME} !-d
  • RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

Ad 2 Extend user fields
Via Configuration –> People –> Account settings go to Manage fields and add all fields you want to have for your users.

Ad 3 List of users
Install Ctools (http://ftp.drupal.org/files/projects/ctools-7.x-1.0-rc1.tar.gz). Then install Views (http://ftp.drupal.org/files/projects/views-7.x-3.0-rc1.tar.gz). Enable Chaos tools in the Modules page, then enable Views and at last enable Views UI.

For more extended help on Views, install Advanced help (http://ftp.drupal.org/files/projects/advanced_help-7.x-1.0-beta1.tar.gz) and enable it.

Create a new view based on users, add the fields created in step 1 that you want to appear, set the output to e.g. table and you’re set.

Enable the View user profiles for Authenticated users to have your users give access to other users’ profiles.

Ad 4 Custom footer message
Add a custom footer message by installing the footer message module (http://ftp.drupal.org/files/projects/footer_message-7.x-1.1.tar.gz).

Ad 5 Remove breadcrumb
Edit themes/bartik/templates/page.tpl.php, find the lines that print the breadcrumb and comment the lines.

Ad 6 Content access
To enable access rules to content types, install the content access module (http://ftp.drupal.org/files/projects/content_access-7.x-1.2-beta1.tar.gz).

Ad 7 Contact form
Enable the contact form to enable people to contact you. Activate the contact form module which comes standard with Drupal. Enable the role Anonymous user to actually have it enabled and also enable a link in one of the link menus.

Ad 8 Calendar
Setup dates in the system using the Date module (http://ftp.drupal.org/files/projects/date-7.x-2.x-dev.tar.gz). Then use the Calendar module (http://ftp.drupal.org/files/projects/calendar-7.x-3.x-dev.tar.gz) for creating a Google alike calendar view.

After installing the modules, enable the Date API, then Date, then Date Views and finally the Calendar module. Create a new content type, call it e.g. Event. Add a field called e.g. Event date of type Date to the new content type.

Ad 9 Publish iCal
Enable the Calendar iCal module that came with the installation of the Calendar. In the view for the calendar, add a new one based on feed. Note that when event content is made private, the feed will only contain events when first logged in. I.e. linking the URL to Google calendar won’t work (empty).

Ad 10 Store & share pictures
A solution for sharing documents is the Media module (http://ftp.drupal.org/files/projects/media-7.x-1.0-beta5.tar.gz) which requires the Styles module (http://ftp.drupal.org/files/projects/styles-7.x-2.0-alpha8.tar.gz). Extra UI functionality can be added by using the Media browser plus module (http://ftp.drupal.org/files/projects/media_browser_plus-7.x-1.0-beta3.tar.gz).

For easy editing of text and inserting media, use the Wysiwyg module (http://ftp.drupal.org/files/projects/wysiwyg-7.x-2.1.tar.gz). Enable it and install e.g. the CKEditor (3.6.1).

A nice gallery can be created using the Media Gallery module (http://ftp.drupal.org/files/projects/media_gallery-7.x-1.0-beta6.tar.gz). The gallery requires the Multiform module (http://ftp.drupal.org/files/projects/multiform-7.x-1.0-beta2.tar.gz). Uploading multiple files can be done using the Plupload module (http://ftp.drupal.org/files/projects/plupload-7.x-1.0-beta3.tar.gz). Install the plupload script (1.4.3.2).

Ad 11 Store documents
A nice solution for storing documents is the IMCE module (http://ftp.drupal.org/files/projects/imce-7.x-1.4.tar.gz) which also integrates nicely with CKEditor used above. To be able to use the integration install the API bridge: the imce_wysiwyg module (http://ftp.drupal.org/files/projects/imce_wysiwyg-7.x-1.x-dev.tar.gz).

Leave a Reply

Your email address will not be published.