Display page title and child pages as dynamic value

Hello, I hope you can help me.
I want to create dynamic text in a navigation bar that displays the current page the user is on and the parent pages.
It’s structured like this:

“Page title” - “Subpage 1” - “Subpage 2” etc.

For the current page, I used the page title as dynamic text. But how do I do this for the parent pages?

I guess you are looking for a breadcrumb functionality.

Rather than using different pages, could you use a single page, hide/show groups to show information previously stored in different pages, and just update the page URL parameter to account for the “page navigation” and extract the “page” info from the URL?