Defining View Modes - pulibrary/pul_library_drupal GitHub Wiki

To define a new "view mode" template that will provide custom style/logic for a given content type following the following nameming convention:

node--{node_machine_name}--{view_mode_machine_name}.tpl.php

If you want to define a new view mode this can be done in code or as a shortcut using the entity_view_mode module https://www.drupal.org/project/entity_view_mode. Within the .tpl.php files you should have access to all the variables defined in the standard node.tpl.php - - https://github.com/pulibrary/pul_library_drupal/blob/development/themes/bartik/templates/node.tpl.php

Example - Standard Drupal Teaser mode for a content type basic page

node--page--teaser.tpl.php

Example - Custom View Mode for Custom Content Type

node--cas_protected_db_resource--content_body_mode.tpl.php

Templates for Taxonomy Terms?