tags:

views:

51

answers:

0

I'm looking for a snipppet of PHP I can drop into a .tpl (Drupal 6.1.9) that will list the sibling nodes of the current node. Hopefully that's enough information, but here's the nuts and bolts:

  • By "nodes" I mean that I've got everything in the "Primary Links" menu. I'm only interested in the hierarchy defined there.
  • By "node" I also mean that these are nodes created through "node/add/panel". They're Panel nodes. I didn't think that was important until I noticed that Breadcrumbs didn't work with Panels, but now you know.
  • I am working in a system where I have to inject this PHP into a template. So I won't be adding this to page.tpl.php, but panels-twocol.tpl.php, where I'm hoping it will replace a dropped-in "pane" that's not working.

I might be oversimplifying this too much, but my hope is that there's a PHP snippet out there that goes up a node, for-loops through, and lets me modify slightly what kind of output I get.