What's the best way to determine the original content-type in the node--nodeblock.tpl.php template?

At the moment, I'm using what seems to be a rather convoluted method, i.e via a field in the content-type: $content['field_myField']['#bundle']

However, that depends on this field being present in all content-types that I might want to use for nodeblock - which won't always be a valid assumption.

Comments

Onein created an issue. See original summary.

Johnny vd Laar’s picture

It's a normal node.tpl.php so you have all variables that are documented here https://api.drupal.org/api/drupal/modules!node!node.tpl.php/7.x.

Johnny vd Laar’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.