Create the album detail page

In the AJAX Panels tab of the Files panel, click the Content/AlbumDetail item in order to make it editable in the index master page. To retrieve detailed information about albums, you need data from both the artists and albums tables (so you need two recordsets).

  1. Go to the Application panel, Bindings -> + -> Recordset (Query) to create the first recordset. Configure the window that opens as shown below:


                                    

  2. Once again go to the Application panel, Bindings -> + -> Recordset (Query) to create the second recordset. Configure the window that opens as shown below:


                                   

Once the recordsets are created, continue with the instructions below:

  1. Select the {DETAIL TITLE} default text. In the Bindings tab of the Application panel, expand the rsAlbumDetails recordset and drag and drop the title_alb column on top of the selected text.

  2. Select the default image placeholder below the album title. In the Property Inspector, click the Browse for File button (folder icon) next to the Src text box and configure the dialog box that opens similar to here. The two differences are:

  3. Remove the default content below the image placeholder and create two new paragraphs there.

  4. To set a different HTML title according to the album you are viewing, proceed as explained here, with the difference that you need to select the title_alb column from the rsAlbumDetails recordset.

Save the index file, upload it to the server, and preview it in browser (press F12). If you now click the Matchbox Twenty item in the menu on the left, and then their More than you think you are album, this is how the page should look:

 

To complete the other Content states follow the steps below:

  1. Click the default state of the Content panel and edit its content:

  2. Click the Contact state of the Content panel and edit the default content:

At this point, the AJAX site with a music catalog of your favorite artists and albums is completed!