views-view-row-node.tpl.php

views-view-row-node.tpl.php Default simple view template to display a single node.

Rather than doing anything with this particular template, it is more efficient to use a variant of the node.tpl.php based upon the view, which will be named node-view-VIEWNAME.tpl.php. This isn't actually a views template, which is why it's not used here, but is a template 'suggestion' given to the node template, and is used exactly the same as any other variant of the node template file, such as node-NODETYPE.tpl.php

File

theme/views-view-row-node.tpl.php
View source
  1. <?php
  2. /**
  3. * @file views-view-row-node.tpl.php
  4. * Default simple view template to display a single node.
  5. *
  6. * Rather than doing anything with this particular template, it is more
  7. * efficient to use a variant of the node.tpl.php based upon the view,
  8. * which will be named node-view-VIEWNAME.tpl.php. This isn't actually
  9. * a views template, which is why it's not used here, but is a template
  10. * 'suggestion' given to the node template, and is used exactly
  11. * the same as any other variant of the node template file, such as
  12. * node-NODETYPE.tpl.php
  13. *
  14. * @ingroup views_templates
  15. */
  16. ?>
  17. <?php print $node; ?>
  18. <?php if ($comments): ?>
  19. <?php print $comments; ?>
  20. <?php endif; ?>

Related topics