Getting Started with Profile2

  • Creating and Managing Profile Types - To get started with profile2 you will need to create a new profile type or manage the default one. This can be found at admin/structure/profiles
    Profile types found in Admin Structure Menu
  • Creating and Editing your Profile - By default profiles can be created and edited at user/uid/edit. There should be a secondary tab for each profile the user has access to.
  • Private Fields - Private fields are only visible to the profile owner and administrators. Field privacy is managed through the check box at the bottom of field edit page (i.e. /admin/structure/profiles/manage/profile/fields/myfield).
  • Check box at bottom of field edit page

  • Profile Permissions - In order to make profiles creatable and visible to users you will have to manage the permissions for each profile type (located at /admin/people/permissions#module-profile2).

Profile Permissions

Private Download module

Goal of this documentation

Illustrate the setup and use of the Private Download module in combination with the CCK FileField module.


Your Drupal 6 site has a Public file system but you have files which require access rules. This is the Public/Private File system conundrum. The following tutorial demonstrates how to solve this problem using the Private Download module.


- A Drupal 6 site setup with a Public file system pointing to "sites/default/files".
- CCK and CCK FileField modules are installed and enabled.

Pre-installation environment

- There shouldn't be a private folder in sites/default/files/
$ ls -al sites/default/files
- If your Drupal code is found in then you're in a sub-directory. If this is the case, set the base_url in settings.php to represent this.

Install and enable Private Download

- Visit the Private Download Module project page.
- See additional details here.

Displaying a Thumbnail/Splash Image with Videos

With SWFTools 6.x-3.x, using a flash player (such as Flowplayer) with a splash image is now possible without using swf(). An image may be used by creating two file fields within a node-type. One field will contain an image while the other will contain the video. To enable use, select the 'display fields' tab and configure the following:

Implementing duplicated menus

This code was built for a project which included:

  • the ability to create menus
  • the ability to have duplicated menus
  • having a sidebar that contains the current selected menu

By adding node/1?b=1 at the end of the menus that were duplicated, a simple operation could verify if they menu was selected or not.

Fixing duplication requires that everytime a menu is saved, we go through the menu structure again to fix the problematic menus appending ?b=X at the end. You can either push a button in the admin interface or just modify them, as it hook on menu_link_alter.


function duplicated_menus_menu() {
$items['admin/settings/duplicated_menus'] = array(
'title' => 'Duplicated menus admin page',
'page callback' => 'drupal_get_form',
'page arguments' => array('duplicated_menus_admin_form'),
'access arguments' => array('access content'),
return $items;
function duplicated_menus_admin_form() {
$form = array();
$form['description'] = array(
'#type' => 'markup',
'#value' => t('This button force reloading the primary menus to add proper menu numbering allowing duplicates to have their own predefinite paths'),
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Reload primary links'),
return $form;

MeSH Vocabulary

The MeSH Vocabulary module provides a convenient method to import the large Medical Subject Headings thesaurus and also a modal popup to provide more efficient browsing.

MeSH format

This module makes use of the "MeSH Trees" format. This format allows for a reasonably fast import and preservation of term hierarchy. The XML format more commonly used includes a large amount of superfluous information and, at 260MB in size, not a viable option for a web-based import.

MeSH browser

Using the CTools modal dialog, this module overrides the default taxonomy widget to instead use an AJAX modal browser. All other taxonomies are rendered using the normal widget.

MeSH import process

  1. Download the MeSH Trees file from the above site.
  2. Navigate to Administer > Taxonomy > MeSH.
  3. Select the correct MeSH year (sets the top-level headers).
  4. Upload the MeSH Trees file.
  5. Save configuration.
  6. Click "Populate MeSH vocabulary" to begin the import process.
  7. After completion, you may add the MeSH vocabulary to any content type to use.

System Requirements

    Installing LayoutStudio 2.x for Drupal 6

    A YouTube video showing the installation process is also available

    1. Download LayoutStudio

    2. Unpack the downloaded file, and place the layoutstudio folder in your sites/all/themes


    Subscribe with RSS Subscribe to RSS - Needs copy/style review