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.
- Create a table view that lists the events.
- 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.
- In the first view, add the event nid as a hidden field.
- 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:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion