Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download tar.gz 12.01 KB
MD5: f8f4582e8c69fe017192597a30e0e49a
SHA-1: 41d8257f1bf83cfe0479640a4b134d437b4cee0c
SHA-256: f8fa6e6e011de0edec248dc000b9bf7ccd8b65ca62e157c31c5a7ac85f771b52
Download zip 13.55 KB
MD5: f206a9e99556d513c845f37f3ba0dbd6
SHA-1: b7ba7311170394d4e49872e7d3d3f9882951e813
SHA-256: 806f1c9dd743a07dd67705cba0b8cdaee3a968a4c87932dee1beb2b6bfce99a6

Release notes

With the 1.0 release, you can now pick templates for entities, like users, comments, or taxonomy terms. You can use them in the same way you use node templates. The naming convention for entity templates is entity--bundle--tp*.tpl.php

Bug Fixes:

Here are some examples of entity-based template suggestions:

  • taxonomy-term--tags--tp-1.tpl.php
  • user--user--tp-1.tpl.php
  • comment--comment-node-article--tp-1.tpl.php
  • node--article--tp-1.tpl.php
  • video--advertisement--tp-1.tpl.php (a custom entity and bundle)

(note: entity or bundle machine names containing underscores should be converted to hyphens when used in template file names, as shown above)

You can pick templates for custom entities (which have their own display template), as long as those entities are built off of the Entity API module.

This release doesn't support entities built with the ECK module, until the issues I've reported with ECK form submission have been addressed.

Of the entities that come with Drupal 7 core, the 'file' and 'taxonomy_vocabulary' entities are not supported by template picker, since they have no default template implementations to override.

Created by: bryanbraun
Created on: 28 Dec 2013 at 06:42 UTC
Last updated: 31 Dec 2013 at 05:23 UTC
Bug fixes
New features
Unsupported

Other releases