Skip to main content
replaced http://drupal.stackexchange.com/ with https://drupal.stackexchange.com/
Source Link

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 thisthis 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-

  • Created a RELATIONSHIP filter; "Content: Taxonomy terms on node". Then created a contextual filter; "Taxonomy term: Term ID" to use that relationship. Didn't Work. (This is a method I used in ANOTHER view block created. But it works because the term is in the url. See next item. 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.
  • Tried using thisthis method but it didn't work either.

How can I create a block to read from a field from the node its loaded in? (See Field4 in the example)

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-

  • Created a RELATIONSHIP filter; "Content: Taxonomy terms on node". Then created a contextual filter; "Taxonomy term: Term ID" to use that relationship. Didn't Work. (This is a method I used in ANOTHER view block created. But it works because the term is in the url. See next item. 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.
  • Tried using this method but it didn't work either.

How can I create a block to read from a field from the node its loaded in? (See Field4 in the example)

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-

  • Created a RELATIONSHIP filter; "Content: Taxonomy terms on node". Then created a contextual filter; "Taxonomy term: Term ID" to use that relationship. Didn't Work. (This is a method I used in ANOTHER view block created. But it works because the term is in the url. See next item. 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.
  • Tried using this method but it didn't work either.

How can I create a block to read from a field from the node its loaded in? (See Field4 in the example)

deleted 4 characters in body
Source Link
Digital fire
  • 829
  • 1
  • 10
  • 34

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-

  • Created a RELATIONSHIP filter; "Content: Taxonomy terms on node". Then created a contextual filter; "Taxonomy term: Term ID" to use that relationship. Didn't Work. (This is a method I used in ANOTHER view block created. But it works because the term is in the url. See next item. 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.
  • Tried using this method but it didn't work either.

How can I create a block (See Field4 in the example) to to read from a field from the node its loaded in? (See Field4 in the example)

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

  • Created a RELATIONSHIP filter; "Content: Taxonomy terms on node". Then created a contextual filter; "Taxonomy term: Term ID" to use that relationship. Didn't Work. (This is a method I used in ANOTHER view block created. But it works because the term is in the url. See next item. 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.
  • Tried using this method but it didn't work either.

How can I create a block (See Field4 in the example) to read from a field from the node its loaded in?

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-

  • Created a RELATIONSHIP filter; "Content: Taxonomy terms on node". Then created a contextual filter; "Taxonomy term: Term ID" to use that relationship. Didn't Work. (This is a method I used in ANOTHER view block created. But it works because the term is in the url. See next item. 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.
  • Tried using this method but it didn't work either.

How can I create a block to read from a field from the node its loaded in? (See Field4 in the example)

added 160 characters in body
Source Link
Digital fire
  • 829
  • 1
  • 10
  • 34

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 ableCreated a RELATIONSHIP filter; "Content: Taxonomy terms on node". Then created a contextual filter; "Taxonomy term: Term ID" to successfully create this block butuse that relationship. Didn't Work. ONLY because(This is a method I was able to pullused in ANOTHER view block created. But it works because the term fromis in the url. See next item. 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.
  • Tried using this method but it didn't work either.

How can I create a block (See Field4 in the example) to read from a field from the node its loaded in?

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.
  • Tried using this method but it didn't work either.

How can I create a block (See Field4 in the example) to read from a field from the node its loaded in?

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

  • Created a RELATIONSHIP filter; "Content: Taxonomy terms on node". Then created a contextual filter; "Taxonomy term: Term ID" to use that relationship. Didn't Work. (This is a method I used in ANOTHER view block created. But it works because the term is in the url. See next item. 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.
  • Tried using this method but it didn't work either.

How can I create a block (See Field4 in the example) to read from a field from the node its loaded in?

added 172 characters in body
Source Link
Digital fire
  • 829
  • 1
  • 10
  • 34
Loading
added 247 characters in body
Source Link
Digital fire
  • 829
  • 1
  • 10
  • 34
Loading
added 228 characters in body; edited title
Source Link
Digital fire
  • 829
  • 1
  • 10
  • 34
Loading
added 228 characters in body; edited title
Source Link
Digital fire
  • 829
  • 1
  • 10
  • 34
Loading
added 164 characters in body
Source Link
Digital fire
  • 829
  • 1
  • 10
  • 34
Loading
Source Link
Digital fire
  • 829
  • 1
  • 10
  • 34
Loading