Display few categories with many items

Follow the instructions presented in this tutorial topic if you are dealing with few categories, each with lots of items, and you want them displayed in a convenient layout.

Open the many_items page and continue with the next steps:

  1. Apply the Nested Repeat Region Wizard from the MX Kollection tab of the Insert panel. This way, all continents will be displayed, each one with its own countries (of course, not in the wanted layout yet).

  2. Configure the first step of the wizard as shown here.

  3. Configure the second step of the wizard as shown below:


                               

  4. The page in Dreamweaver, in Design view, should look like this (for the PHP server model):


                                
    Note:
    If the translator does not look right, save the page, close it, and reopen it.

  5. Press F12 to preview the page in browser (after saving and uploading it to the server), and see the current continents/countries display:


                               

  6. On your way to the wanted layout, there are some changes you need to perform back in the Dreamweaver page:

  7. Since you want to display countries (items) in three columns (for each continent), it would make sense to apply the Looper Wizard on the detail dynamic text. But when you try to do that, you get the following message:


                               

  8. In this case, you need to use a certain trick so that the Nested Repeat structure will not be recognized in the Server Behaviors tab of the Application panel anymore. Follow the instructions below, according to you server model:

  9. It is now possible to apply the Looper Wizard. Select the detail dynamic text (single-click) and access the wizard from the MX Kollection tab of the Insert panel.

  10. Configure the wizard interface as shown below:


                               

  11. Click the detail dynamic text, and in the Tag Selector select the <table> tag corresponding to the table added by the Looper Wizard (second <table> tag). Set its cell padding to 3 pixels, its cell spacing to 10 pixels, and its border to 0 pixels (just as shown here).

  12. There is one more thing to do, but totally compulsory. In order for countries (items) to be displayed in the number of columns set (3), there is a line of code that needs to be duplicated:

  13. After following all the steps above, save the page, upload it to the server, and press F12 to preview it in browser:

 

Notice that the few categories with many items are displayed just as planned!

If there are situations in which you are dealing with many categories with few items, check out the previous topic and learn how to display them best.