Closed (fixed)
Project:
Entity view modes
Version:
7.x-1.0-beta3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Aug 2012 at 23:05 UTC
Updated:
11 Feb 2013 at 04:20 UTC
Hello all,
Though I suppose separate tpl's per view mode would be the better approach, how do I check for a new view mode within a single template file?
Obviously, checking for the $teaser variable does not suffice.
Thank you in advance
Comments
Comment #1
dave reidAccording to template_preprocess_node and the documentation in node.tpl.php, you should have access to a $view_mode variable already.