Drupal get node id from view

To get the node ID from a view in Drupal, you can use the following steps:

  1. Edit the view that you want to work with.
  2. In the "Format" section, click on the "Settings" link next to the format you are using (e.g., "Unformatted list", "Table", etc.).
  3. In the settings, expand the "Row style" options.
  4. Check the box that says "Customize field and label wrapper HTML".
  5. Click on the "Apply (all displays)" button.
  6. In the "Fields" section, add the field "Content: Nid" (Node ID) to your view.
  7. Rearrange the fields as needed.
  8. Save the view.

Once you have completed these steps, the node ID will be available as a field in your view. You can then use this field to display or manipulate the node ID as desired.