7 Comments

  1. Super-helpful. Exactly what I needed. Thanks!

  2. Great, glad I could help. It definitely took me some time to hunt this one down. While I don’t take credit for the snippet I thought it would be helpful to share and link out to the source in hopes that it might help someone find it a bit quicker. As always things change in open-source so it definitely doesn’t hurt to do some research/testing to be sure this is current.

    Thanks for the comment!

  3. Hey Jeremy, thanks for all your work. I was wondering what version of drupal you were using with this snippet?

    This function is exactly what i’m looking for but i get drupal’s white screen of death when using this snippet in my template.php file. I tried it in both Garland and a custom built theme. the version of drupal i did the testing is 6.16.

    any experience with this concept lately?

    Thanks again.

  4. Hey Casey – I can tell you for certain that is was pre Drupal 6 and about as long since I actually dug into a Drupal powered site.

    Perhaps I will do some research on this and get back to you on it. In the mean time if you happen to find a new solution for how you accomplish this post Drupal 6, please feel free to drop by and leave it in the comments.

  5. the output of this code can be found here: http://bit.ly/bQ2pAx multiple layouts within one node.tpl.php file base on taxonomy.

  6. No worries, only spam if it includes Viagra links. Thanks for trying to post up the new code, you might have better luck trying to add it to http://pastie.org and then linking to it from the comments. If you would like to of course. I am not sure how much help I would be, Drupal is definitely not one of my strong points and obviously you know what you are doing, but I would be interested to check it out.

  7. good idea. here is my complete node.tpl.php file: http://bit.ly/c1aUf1
    The layout is based on a custom css grid design from my designer.

    I would like to learn how to put this in template.php and eventually a module.

Leave a Comment



XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>