On this page
panelizer-view-mode.tpl.php
Last updated on
7 December 2017
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
This file is only in Zen 7.x-3.x.
The panelizer-view-mode.tpl.php file returns the HTML for an entity controlled by Panelizer.
Available variables:
- $classes
- String of classes that can be used to style contextually through CSS. It can be manipulated through the variable $classes_array from preprocess functions. The default values are:
- [entity-type]
- [entity-type]-[view-mode]
- [entity-type]-[bundle]
- [entity-type]-[entity-id]
- node-sticky: only for nodes, if the node is sticky
- node-promoted: only for nodes, if the node is promoted
- $title_element
- The HTML element to be used for the title. This is configurable through the Panelizer UI.
- $title_attributes
- Any attributes to go on the title element.
- $title
- The entity title itself.
- $content
- The content of the entity. Basically this is all the panes configured for this entity through the Panelizer UI.
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion