List products with NeXTensio

In this section of the tutorial you will perform two tasks:

  1. Add a NeXTensio list to the page

  2. Modify the list in order to use it in the front-end without any security risk.

 

To add and configure a NeXTensio list of products to the page, follow the steps below:

  1. Open the index page in Dreamweaver.

  2. Start the Create NeXTensio List Wizard from the MX Kollection tab of the Insert bar. The wizard is divided into four steps, which must be configured.

  3. In the first step of the wizard define the database information, the list's source table and how many records to display:


     

  4. In the second step of the wizard define the table columns to display and their properties:


     

  5. The third step of the wizard allows defining the filter elements for the list. Since all fields are either text or numerical, without foreign keys or look-up tables, the default text fields are good enough. Therefore you can skip this step and move on to the last step of the wizard.


     

  6. In the last step of the wizard configure the list properties: default ordering, skin, effects and buttons:


     

  7. When all options have been set, click Finish to apply the changes brought by the wizard. Some page elements and server behaviors will be added.

If you save, upload, and preview the page in a browser now, aside the basic list, the add new, edit and delete buttons will be displayed - some on each row, and others below, for multiple selections. Also, a column of checkboxes is displayed:

 

In order to make the list suitable for public pages, you must remove all the buttons and checkboxes. Replacing the edit and delete buttons next to each record, a button to display product details will be created. To do so without affecting the list's functionality, follow the instructions below:

  1. First remove the add new, multiple edit, and multiple delete buttons in the bottom row.

  2. Next remove the checkbox column that is displayed first in the list:

  3. The last step is to remove the individual edit and delete buttons, and replace them with the view button:

 

The NeXTensio list has been completely modified, and can be safely displayed in the public pages of your application. Its filtering and sorting capabilities will make it easy to be used by the visitors: