Drupal get node id from view
To get the node ID from a view in Drupal, you can use the following steps:
- Edit the view that you want to work with.
- In the "Format" section, click on the "Settings" link next to the format you are using (e.g., "Unformatted list", "Table", etc.).
- In the settings, expand the "Row style" options.
- Check the box that says "Customize field and label wrapper HTML".
- Click on the "Apply (all displays)" button.
- In the "Fields" section, add the field "Content: Nid" (Node ID) to your view.
- Rearrange the fields as needed.
- 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.