Seems quite simple but can't figure it out. How do you get the page id for the parent page?
- I know you can do $content.getIdAsString() to get the current page's ID.
- I know you can do $content.getParent() to get the parent page.
- But $content.getParent().getIdAsString() seems to do nothing.
I can't seem to find anything relevant in the API docs that explains how/if this is possible.