tech.nicva.org
tech endeavours from nicva
  • About
  • Login
  • Contact Us
  • Home
  • About
  • Projects
› Home › Blogs › Feargal O Kane's blog ›

Embed a view in a tpl.php file

Feargal O Kane's picture
Submitted by Feargal O Kane on Mon, 23/03/2009 - 15:59
in
  • Drupal
  • Views

Snippet for embedding a view directly into a tpl.php file

<?php
  $view = views_get_view('viewname');
  $display = $view->execute_display('block_1');
  print $display['content'];
?>
  • Feargal O Kane's blog
  • Add new comment
  • Printer-friendly version

Drupal Planet

  • Drupalpress, Drupal in the Health Sciences Library at UVA: Rule Scheduling and Emailing Views According to CCK date fields
  • Patrick J Waters: Recent Project: Converting the BMJ (British Medical Journal) to Drupal
  • Mediacurrent: Shun Your Clients to Serve Them Better
  • Phase2 Technology: Office of the New York Attorney General Finds Great Fit with OpenPublic: An Interview with New Amsterdam Ideas
  • Clemens Tolboom: A pinch of Symfony for D8MI?
more

Ireland on Drupal

  • Cork meetup April 25th 2012
  • Registration for DrupalCamp Scotland 25-26 May 2012 is now open
  • Drupal in a day!
  • DrupalCamp Scotland 2012
  • Drupal website programer | Ingredients Hub
more

Syndicate

Syndicate content
Open source online newspaper and magazine software