Skip to main content
deleted 147 characters in body
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

I'm fairly new to Drupal and Views but was wondering if someone can please help me with the current situation?

  • I've created a views block that loads all nodes of a certain content type.
  • I've added athe Content: Has taxonomy term ID contextual filter of Content: Has taxonomy term ID

This works great, in. In the preview area if I change the value in the "preview with contextual filters" input field it changes the nodes that load below according to which taxonomy term ID I input.

How can I have this same functionality on a normal Drupal page?

I will have a list of links on the page with an href value of the taxonomy term ID. When I click a link, I need it to load all nodes that have been associated with that particular taxonomy term into an empty div using AJAX.

I've read somewhere on here that if the nodes just contain some basic text then using a pure AJAX solution might not be the best but rather accomplish the same thing using Viewsviews.

Any help is much appreciated!

I'm fairly new to Drupal and Views but was wondering if someone can please help me with the current situation?

  • I've created a views block that loads all nodes of a certain content type.
  • I've added a contextual filter of Content: Has taxonomy term ID

This works great, in the preview area if I change the value in the "preview with contextual filters" input field it changes the nodes that load below according to which taxonomy term ID I input.

How can I have this same functionality on a normal Drupal page?

I will have a list of links on the page with an href value of the taxonomy term ID. When I click a link, I need it to load all nodes that have been associated with that particular taxonomy term into an empty div using AJAX.

I've read somewhere on here that if the nodes just contain some basic text then using a pure AJAX solution might not be the best but rather accomplish the same thing using Views.

Any help is much appreciated!

  • I've created a views block that loads all nodes of a certain content type.
  • I've added the Content: Has taxonomy term ID contextual filter

This works great. In the preview area if I change the value in the "preview with contextual filters" input field it changes the nodes that load below according to which taxonomy term ID I input.

How can I have this same functionality on a normal Drupal page?

I will have a list of links on the page with an href value of the taxonomy term ID. When I click a link, I need it to load all nodes that have been associated with that particular taxonomy term into an empty div using AJAX.

I've read somewhere on here that if the nodes just contain some basic text then using a pure AJAX solution might not be the best but rather accomplish the same thing using views.

Source Link
G Man
  • 41
  • 2

Load nodes into div using AJAX

I'm fairly new to Drupal and Views but was wondering if someone can please help me with the current situation?

  • I've created a views block that loads all nodes of a certain content type.
  • I've added a contextual filter of Content: Has taxonomy term ID

This works great, in the preview area if I change the value in the "preview with contextual filters" input field it changes the nodes that load below according to which taxonomy term ID I input.

How can I have this same functionality on a normal Drupal page?

I will have a list of links on the page with an href value of the taxonomy term ID. When I click a link, I need it to load all nodes that have been associated with that particular taxonomy term into an empty div using AJAX.

I've read somewhere on here that if the nodes just contain some basic text then using a pure AJAX solution might not be the best but rather accomplish the same thing using Views.

Any help is much appreciated!