O'Reilly logo

Instant Lift Web Applications How-to by Torsten Uhlmann

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Building a dynamic menu structure (Advanced)

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.

Getting ready

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required