Dreamweaver
dreamweaver Construction Blog full record (1)· Dreamweaver Building Blog (2): Building a development environment
Dreamweaver Building Blog (3): Database design and Connectivity · Dreamweaver Building Blog (4): The Realization of home page
In the fourth chapter of the completion of the home page is actually very imperfect, one is the note menu columns do not have links, can not click; the second is to click the note title, can not link to the reply page; Third, click on the author, can not link the author's information. These features will be perfected in this chapter.
5.1 Note Menu Columns implementation
Design idea: Modify the hyperlink in the menu column in the template bkblog.dwt.aspx, and then update all the pages; When you open the first page, browse to display the contents of the notes in descending order, click on the menu columns, and then sort the contents of the notes in descending chronological order according to the columns.
5.1.1 Create Template Menu
(1) Open the template bkblog.dwt.aspx, select dynamic text (MENUDA.LM), create hyperlinks, link to the home page (index.aspx), select Code display view, and move the mouse to the red vertical line shown in Figure 5-1-1. (There is no special indication that all symbols are in English characters)
Figure 5-1-1 Mouse move to link properties
(2) Enter "? menanw=" (MENANW is the parameter variable), switch to the bindings panel, drag the field under the DataSet (Menuda) Lmid to the equals number you just entered, the result is shown in Figure 5-1-2:
Figure 5-1-2 Insert dynamic Property (A.HREF)
(3) switch to the server behavior panel to see that a server behavior has been added: Dynamic Properties (A.HREF), as shown in Figure 5-1-3:
Figure 5-1-3 Server Behavior panel
(4) Select "Home" menu, create link to index.aspx, select "Contact Us", create link to mailto:wen110@21cn.com.
(5) Save the bkblog.dwt.aspx template, which will pop up the dialog shown in Figure 5-1-4.
Figure 5-1-4 Update template file dialog box.
(6) Click the "Update" button, complete the note menu compartment, and update the home index.aspx.