Hey all,
I'm a Movable Type guy trying his best not to chuck his computer out the window here. Doing custom "outside-the-box" themes in Drupal is giving me a complete headache! Please bear with me. I've thoroughly searched the forums and documentation, but just can't find an answer that makes sense to me.
I have a standard layout on a page. Various news titles/teasers on the left, and news "bits" on the right. I have my taxonomy set up, so I can use this php snippet to pull out the article categories I want to show:
http://drupal.org/node/31537
So for the news bits on the right, I have this:
$taxo_id_bits = "10"; /* comma seperated list */
$list_length_bits = 5;
$sql_bits = "SELECT * FROM {node} INNER JOIN {term_node} ON {node}.nid = {term_node}.nid WHERE {term_node}.tid in ($taxo_id_bits) ORDER BY {node}.created DESC LIMIT $list_length_bits";
$result_bits = db_query($sql_bits);
while ($anode_bits = db_fetch_object($result_bits)) {
$output_bits .= theme('node', $anode_bits, $teaser = FALSE, $page = FALSE);
}
print $output_bits;
It works, but I want to give them a special theme. I know how to override the node theme, but then my whole page looks like crap except for the news-bits. I am familiar with overrides using template.php - but don't know how to do it here. I have a working "node template" that I'd like to apply just to this news column, and seeing that the news column just appears on the home page, how can I do that?