Drupal 5, 6 & 7 How to add fields to a content type

For this common need, to extend blog, page, story or your own custom content type, you need to install one of the most important contributed modules, the Content Construction Kit or CCK.

Ubuntu 10.04 LTS (Lucid Lynx) - Desktop version

Use the Synaptic Package Manager from the System->Administration menu to find and install the following packages :

  • mysql-server (a metapackage to install the latest version)
  • apache2 (another metapackage)
  • php5 (yet another...)
  • libapache2-mod-php5
  • phpmyadmin
  • libgd2-xpm (the GD library)
  • php5-gd
  • drupal6

This installs drupal in /usr/share/drupal, so you will need to create a virtual host or edit /etc/apache2/sites-available/default to point to this directory.
To do this open terminal from Applications>Accessories and type
gksudo gedit /etc/apache2/sites-available/default
and replace the path that contains www (by default)

For Clean URLs to work, AllowOverride All should be enabled for directory /usr/share/drupal in /etc/apache2/sites-available/default - /usr/share/drupal should be set as the DocumentRoot in the same file.

The installation of MySQL and phpmyadmin will involve setting up a root password for MySQL - the install procedure should prompt you for this, and the phpmyadmin install will ask for it too.

To enable the Apache rewrite module -

sudo a2enmod rewrite

To increase PHP memory to a more drupal-friendly value, open a terminal and execute

sudo gedit /etc/php5/apache2/php.ini

RootCandy

Rootcandy is a theme which was created solely for an administration part of drupal. However, I have seen people using it for front-end too. This page will describe what are the options and settings of RootCandy theme.

RootCandy project page: http://drupal.org/project/rootcandy
Latest screenshots: http://sotak.co.uk/rootcandy-drupal-admin-theme-screenshots

Main features

  • Supports node/add /edit pages
  • Re-colorable
  • Icons
  • Top navigation by role
  • Simple dashboard
  • 3 column fluid or fixed layouts
  • Rootcandy dark sub-theme

Installing the theme

You can either enable this module on admin/build/themes page or visit admin/settings/admin and choose RootCandy or RootCandy Fixed.

The difference between RootCandy and RootCandy fixed is, that RootCandy is fluid (100% width) and RootCandy fixed is 1000px wide.

Configuring RootCandy

Top (icons) navigation

admin/build/themes/settings/rootcandy

RootCandy comes with default top navigation and 24px icons enabled. The default navigation is Dashboard, Content, Create content, Building, Configuration, Users, Reports and Help.

This default navigation is for administrators, for anonymous users it will display only Login menu item.

Navigation basic settings

Expand "Navigation" fieldset.

Creating Checkboxes, Radio Buttons, or Select Lists

Creating radio buttons, checkboxes, and select lists is a little tricky in Webform, since they're all part of the "select" component type. To create these types, follow the instructions below for the type of element you are trying to create.

Comparison topics for image-handling methods

When selecting image handling modules consider these factors:

  • Ease of implementation for the site designer/admin relative to their experience and skill level with Drupal.
  • Ease of use for content authors; is the content being created by many users, or by a smaller group that can get some training? What about photo galleries?
  • Will the site design dictate the size and placement of images in the display, or do we want to enable/assist users to control this within the body of their content?
  • Do we want to control access to certain sets of images based on user roles? Do we need better control over per-user quotas than what's offered by core?
  • Will we want to re-use images once they're in the system, displaying them in multiple places on the site (e.g. blog post, news item and in a gallery)?
  • Is batch uploading of sets of files important, or is one-at-a-time uploading good enough? Can/should we offer content authors FTP access?
  • Will the modules we choose continue to be actively developed and supported through future versions of Drupal so we can upgrade without having to go back and edit existing content?

Furthermore, once you start to investigate the topic further you see that "handling images" includes many different processes, both from the users' and the system's point of view:

Comparison of Content Block modules

Similar / Relevant by term is based on the taxonomy terms assigned to content. Blocks are available based on similarity within each of the defined vocabularies for a site as well as a block for similarity within all vocabularies

Pages

Subscribe with RSS Subscribe to RSS - Site administrators