I'm trying to build a block that shows the related nodes to the current node by taxonomy term. For example: If the current node in display has a taxonomy term "fish", a bunch of links that link to nodes that have the "fish" term is to be shown in a block on the page.
I have looked all over the forums and the handbook, and I did not see this addressed before.
Has anyone else seen a callback in a module executing multiple times for a single page view?
In the call back routine, just to debug, I open a text file with lock on the server and print a line with current timestamp in it and then close it. Instead of one line per page-view (www.drupal.site/lookup/test) I see three lines with same timestamp... sometimes spaced by 1-2 seconds.
Any ideas? Why is drupal executing the code three times? Please see the code snippet below.....
Here is the example I'm trying to work on. I'd like to build a website for reviewing various things like movies, music, etc. And I'm seperating out "discussion (which may contain spoilers)" from "reviews (which may not contain spoilers)" from "items (which the reviews and discussion are based on). My thought was to have 3 node types, one for each of them. And then some stuff to link them all together. My thought is that the "items" can be one of many various things like "music, movies, etc"...which brings me to the senario i'm stuck on:
I am working on a module and can't figure out how to display the page for a path.
If the path is of the type node/%d, then I can use node_load and everything is fine.
But, if the path is anything other than node such as forum/%d then load_noad doesn't work.
How do I load a page using a path where paths like:
forum/01 , og/ etc will work?
I can not simply use drupal_goto as I am adding elements to the returned page.