O'Reilly logo

MODx Web Development by Antano Solar John

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

Chapter 7. Creating Lists

MODx allows menus to be dynamically created, based on the content available, as resources. Menus are basically lists of resources, and submenus are lists of lists (lists within a menu list). In MODx, the simplest way to create lists of all the resources is by using the [[wayfinder]] snippet. In this chapter, we will learn how MODx allows us to create these lists dynamically, and also learn how to present them as menus.

Menu details in document properties

Every resource that can be shown in a menu must have the Shown in Menu option enabled in the resource's setting page. The Resource setting page also has two other options related to menus:

  • Menu title—what to show in the menu. The resource title is used, if this value is ...

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