Cwgordon7's blog - templates /taxonomy/term/6/0 en Drupal 6 and Templates: The Next Big Thing /drupal-six-and-templates-the-next-big-thing <p>Drupal 6's updated <a href="http://api.drupal.org/api/function/theme/6">theme()</a> function creates considerable more support for templates. If you've even looked at a Drupal 5 theme's files or the Drupal 6 core, you've seen them. They're the little .tpl.php files.</p> <h2>What is a template, anyway?</h2> <p>A template is a file designed to be friendly to the typical administrator. There is not supposed to be any complex PHP code there, because that would scare off many a user. They're lightweight files used to generate the equivalent of what a theme_function does. Variables can be passed into the template for use through a nice php function, template_preprocess_template_name().</p> <p><a href="/drupal-six-and-templates-the-next-big-thing" target="_blank">read more</a></p> /drupal-six-and-templates-the-next-big-thing#comments drupal templates Thu, 27 Dec 2007 02:00:52 +0000 cwgordon7 5 at