Notes for doing things in Drupal – Partner Content specific

This is mainly for Partner Content and might not be much use to anyone else.

  1. Create a Primary Link called 'Hardware' and to point to the PC directory;
  2. Create a new Page in Drupal called 'Partner Content';
  3. In ftp create a file in the theme's folder called page-node-322.tpl.php (where 322 is the id of the page)
  4. Populate page-node-322.tpl.php with the contents from page-node.tpl.php but divide the content using php switch($_GET['']) to separate each section (header, column, footer etc.)
  5. In PC customisation.php point each element to the Drupal Partner Content page;

Additonal information for sub menus

To add submenus to the PC pages from Drupal there are a few extra steps that are required.

  1. Any Secondary Links that needs to be displayed from within Drupal needs to be listed under 'Partner Content' (not 'Hardware');
  2. Create a Primary Link called 'Partner Content' with the path set to the Drupal 'Partner Content' page - Enabled should not be checked (this stops it appearing in the menu);
  3. List all the Secondary Links under 'Partner Content'
  4. Add a new Secondary Link as a place holder so the 'Partner Content' top level navigation to enable called 'PC Nav' – Partner Content will look for this and replace it for the PC top level navigation.

About Keiron

Web Developer based in the UK. Click here if you want to work with me