Reply to comment

sirkitree (not verified) on February 12, 2008 - 3:40am

Yes it is better to get this done in template.php and then have your .tpl file clean for a designer, but this is a key step that should be learned on the way there. After that, if you find your template.php file getting overcrowded, you can split out your $vars into node-[content-type].vars.php.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see and Markdown Extra for tables, footnotes, and more.

More information about formatting options