How to Pass an Argument From the URL View in Drupal
The Drupal Views Argument API enables you to easily deal with passing arguments to views. It provides a mechanism for modules to define arguments in block and embedded views. It offers a user interface for you to select arguments to pass to embedded views. For instance, you can simply create a block that lists a selection of nodes depending on the present node's taxonomy. This module is an API and it needs to work with another module to accomplish its functions.
Instructions
-
-
1
Download and install the Views Argument API module from Drupal's website. Unzip the module files. Go to the "sites/all/modules" folder and drop the module files.
-
2
Log into your Drupal site back-end with your credentials. Click "Administer," "Site building" and "Modules" to see the installed modules. Activate the Views Argument API module by ticking it. Click "Save configuration."
-
-
3
Click "Administer," "Site building" and "Views" to enter the Views interface. Select a method to pass the arguments to the embedded views.
-
4
Download and install the Views default argument from Context from Drupal's site following the aforementioned steps. Click "Administer," "Site building" and "Views default argument from Context" to access your selected module. Create a new form. Select a URL view from the "View" drop-down box and click "Update." Select a view argument from the drop-down menu under "Term."
-
1