Event logger: How to show most recent log entry

Last updated on
21 October 2025

Let's say you have an Event content type, with a Log entity with a date field to record an instance of the event.

Create an overview list that shows the events, and the most recent log for each one.

  1. Create a table view that lists the events.
  2. Create another view that takes the event nid as a contextual argument, and shows the single most recent log item, with it's date field and any other fields you want.
  3. In the first view, add the event nid as a hidden field.
  4. Add a Views Field View field, select the other view, and pass in the event nid.

Help improve this page

Page status: No known problems

You can: