Tuto WEBDEV 25

128 Part 3: Intranet site with data 5. Save the modifications ( or Ctrl + S). 6. Close the code window. ▶ We are now going to modify the page menu to allow the user to add a new product. 1. Position the cursor on the "List of products" page: click the "PAGE_List_of_products" button in the open documents bar. 2. Display the popup menu of a menu option (right click) and select "Open the template". 3.  In the page template, select the menu. 4. Click the "ITEMS" option. A yellow border appears around the menu. This yellow border indicates that the menu is in "Edit" mode: it can be modified. 5. Open the option description window ("Option description" from the popup menu). 6.  In the "General" tab: • Type the option caption: replace "ITEMS" with "ADD A PRODUCT" • In the Action area: • select "Display a site page". • select the "PAGE_Product_form" page. 7. Validate. The menu option appears: 8.  In the orange bar of template, click to propagate the template modifications to all pages that use this template. 9.  In our case, the two project pages are proposed. Validate the page template update window. 10. Close the page template. We can now check the product addition.

RkJQdWJsaXNoZXIy NDQ0OA==