I have a page created from views with several nodes. That page is created specifying which nids I want the view to load from. See this thread for details on that. Each node displayed on that page contains taxonomy terms. Each of those terms contain other nodes. Usually a small number like 2 or 3. So it kind of like this;
--------------------Main Page----------------
[Node A:(nid=20)]
- Field1: Title
- Field2: Image
- Field3: Term (Spoons)
- Field4: Related Node Image Block (Supposed to read Term from Field3. Created in views)
[Node B:(nid=30)]
- Field1: Title
- Field2: Image
- Field3: Term (Knives)
- Field4: Related Node Image Block (Supposed to read Term from Field3. Created in views)
[Node C:(nid=40)]
- Field1: Title
- Field2: Image
- Field3: Term (Forks)
- Field4: Related Node Image Block (Supposed to read Term from Field3. Created in views)
-------------------End of Main Page--------------
I created a custom field: Block. I added the block to read from each term, and pull the image used in the other nodes that share the term and link to them. Basically, the same product just of a different color.
Things I've Tried
- I have been able to successfully create this block but ONLY because I was able to pull the term from the url. The page I created DOES NOT contain the term in the url.
- I've seen code for previous versions of drupal. http://drupal.org/node/76923. But, I believe that for D7. They have removed the taxonomy_node_get_terms(). Looking to find a D7 Alternative to get the term from the nid of the current load.
How can I create a block (See Field4 in the example) to read from a field from the node its loaded in?