Tuto WEBDEV 25
Part 4: Internet site with data 159 Linking the Internet site and the Intranet site Until now, we have created Intranet pages used to manage the products and Internet pages allowing the Web users to see the new products. We are now going to link these pages by proposing, from the Internet pages, a "Management" link used to access the Intranet pages. To do so, we are going to modify the template of Internet pages. Caution! The following operations can be performed only if you have followed part 3 of this tutorial regarding the creation of Intranet pages. ▶ To create a "Management" link: 1. Select "PAGE_List_of_new_products". 2. Open the popup menu of one of the links at the top of the page and select "Open template". 3. Display the description of Notifications control (double-click the control). 4. Modify the control caption: Management. Tip In your programs, we advise you to choose meaningful names for your elements (in this case, the Link control is named "LINK_Management"). Thus, your code will be more readable. 5. In the "Link action" area, for the "Type" option, select "Run browser click code only". 6. Validate. ▶ We will now write the WLanguage code associated with the Link control: 1. Display the events associated with the Link control (F2 on the control). 2. Write the following code in the "Click (browser)" event: DynamicSiteDisplay("Full_WEBDEV_Site") 3. In this code, DynamicSiteDisplay is used to display the first dynamic page of project (in our case, it will be the "PAGE_List_of_Products" page). 4. Close the code editor. 5. In the orange bar of template, click to propagate the template modifications to all pages that use this template. 6. In our case, the two project pages in AWP mode are proposed. Validate the window for updating the template. 7. Close the page template.
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==