Skip to content

JeebsUK/drupal-cambridge-theme

 
 

Repository files navigation

University of Cambridge Drupal 7 theme

This theme adds the University of Cambridge's house style to your Drupal 7 site.

Requirements

Using the theme

Adding navigation

Horizontal navigation

  • Go to admin/structure/block and click 'Add menu block'.
  • Set the 'Administrative title' to something descriptive (eg 'Horizontal menu').
  • Set 'Menu' to the menu.
  • Set the region to 'Horizontal Navigation' for the University of Cambridge theme.
  • Click 'Save block'.

Vertical navigation

  • Go to admin/structure/block and click 'Add menu block'.
  • Set the 'Administrative title' to something descriptive (eg 'Vertical menu').
  • Set 'Menu' to the menu.
  • Set the region to 'Left Navigation' for the University of Cambridge theme.
  • Add '<front>', 'user' and 'user/*' to the 'Show block on specific pages' settings (making sure that the 'All pages except those listed' option is selected).
  • Click 'Save block'.

Creating teasers, carousels etc

These can be created in Views using fields by setting it to output the right HTML tags and add classes as the right points. This is, however, difficult and repetitive. Node view modes should be used instead, but can't be provided as part of the theme. These are available in Features are instead (such as teasers and carousels).

Optional module integration

Context

By default the section title on the page is the site's name, to change this for a section you can set it through the Context module. To change the theme settings (eg the colour scheme) for a section you can use the Delta module.

Easy breadcrumb

You can replace Drupal's native breadcrumbs with the Easy breadcrumb module. Once enabled, place the 'Easy Breadcrumb' block in the 'Breadcrumb' region.

Menu Firstchild

Normally in Drupal all menu parent items have to be links, and as parent items aren't clickable in the horizontal navigation the theme will add in a child with the text of the parent plus 'overview' so that the user can get to the page. In cases where you don't want to have the parent item linking to a page, you can use the Menu Firstchild module to create a manual wrapper menu item.

Touch Icons

Drupal allows you to change the University's favicon natively, but to change the Web Clip icon for iOS devices install the Touch Icons module.

About

University of Cambridge Drupal 7 theme

Resources

License

Stars

Watchers

Forks

Packages

No packages published