The previous recipe has shown us how we can create a menu structure with Lift's SiteMap. We have also briefly looked at how we can parse URL parameters and pass them to Lift snippets in a type-safe fashion.
Building upon this knowledge, this recipe will introduce you to dynamic menus: menus that change with the current page content.
Most probably you have seen this kind of scheme in web applications near you. You log in to a site and the URL of the application becomes
http://www.app.com/.../user/123, and it will show you information about your user. Then, maybe if it's a photo service, you can drill down into a specific photo album and the URL becomes
.../user/123/album/789, and it shows ...