previous
20
21
next
Select the word Link1 in the white text editing area and - using the [Back space] or [Del] keys to remove the word Link1 - type in «Page 3». Then select the {OK} button and you'll see the +Link+ now appears on the Design Area as Page 3; the actual name of the +Link+ remains Link1 (more about this in Chapter XX) but the label has been changed from Link1 to Page 3. In effect, the phrase Page 3 is a parameter of the +Link1+, just as the letter type used is a parameter. You can alter the letter type from Arial to Times Roman, and the Link1 object remains the Link1 object ; you can alter Page 3 to Widget W7 and the Link1 object still remains the Link1 object .
Next we go to the tabs below the Design Area, select the {Link} tab, and in the Parameter Panel select the drop button to the right of the •Link to page• field. You now see a list of all pages; select Page3 in the dropdown list, select anywhere in Page4 to make Page4 the active page, and then double-click on your new {Page 3} button which is in fact the +Link+ called Link1 Voilá, you're transferred to the bright blue of Page3 - it's as easy as that, even if explaining it is rather messy I think you'll get the hang of it after making a few more +Links+ .
Page3 has no links as yet, so we can't look at any other page. However, it should by now be fairly easy for you to add a +Link+ to Page2 and a +Link+ to Page4 (come on, you've just put in a +Link+ on Page3, this is no more difficult); when you get to Page2 you add a +Link+ to Page3 and to Page1, and lastly, when you get to Page1 you put in a +Link+ to Page2. You can now, double-clicking each time, move from Page1 to Page2 to Page3 to Page4 and back again, and you can admire the pretty colours as you switch from page to page.
However, we can only move one page at a time. Suppose we want to move directly from Page1 to Page3 or from Page3 to Page1. No problem, we just add some more +Links+ on each +Page+ so that each +Page+ has three +Links+, and we can go from any +Page+ to any +Page+.
That's 12 +Links+ for 4 +Pages+. Can you imagine what would happen if we had 6 +Pages+, and we wanted to move directly to any other +Page+? We'd end up with 30 +Links+ , 5 on each +Page+. And on a web site with 30 +Pages+ there would have to be 29 +Links+ on each +Page+ - this gets a little crazy. There must be a better way.
And there is. You may have noticed (or perhaps not) that we haven't done anything with the index +Page+. Now comes the great moment - we are going to add a +Link+ on the index +Page+ itself (the yellow band to the left of the screen). Select anywhere in the yellow area so as to make the
index +Page+ active, then select the {Link} icon and then select anywhere on the visible part of the index +Page+ (the yellow strip on the left). We alter the label parameter of the new +Link+ to Page 1 and link it to Page1. We do the same for Page2, Page3 and Page4.
When we use the +Links+ on the index +Page+, they stay there for you to look at (and use) all the time. We don't really need all those other +Links+ - on Page1, Page2, Page3 and Page4 - and so we can (and will) remove them (select each +Link+ and press [Ctrl + X]), and stick with just the +Links+ on the index +Page+.
In fact, DFM2HTML encourages you to use the index +Page+ as the place where you keep the +Links+ to the child +Pages+, which is an almost direct reflection of my suggestion that you group your information in major categories, a large box to each category - see chapter 1. The index +Page+ (i.e. the part not covered by child +Pages+) stays in sight all the time and allows you to navigate easily from one +Page+ to another.
If you change the labels on the +Links+ to indicate the major categories of your web site (e.g. Home, Pets, Family, Holidays etc. or whatever) then that's half the work of constructing a web site done. Changing the label on a link button from Page 3 to Holidays is just as easy as changing the name of the label from Lable9 to Page 3.
The last piece of business to make your life easier is to change the name of the +Pages+. If, for instance, you have +Links+ on your index page to the Home, Pets, Family and Holiday +Pages+, you have to remember all the time that Page1 is Home, Page2 is Pets, Page3 is Family and Page4 is Holidays. Can we change the names of the pages?
Of course. Select anywhere in Page1 so as to make it the active +Page+, select {Object} on the tab bar below the Design Area and in the Parameter Panel you will see, in the •ID• field, the name of the +Page+, which is at the moment Page1. You may like to change it to Home, but I would advise against such a change, since it gives no indication in the list of objects (a list which includes all pictures, all links, all texts and all other objects) that Home is an object of type +Page+. So I suggest that you call this page P_Home, change the name Page2 to P_Pets and Page3 to P_Family. That way you can keep all the +Pages+ together, and you'll know at all times that you're dealing with a +Page+ and not another type of object. That may not be all that important at this stage, but at a later stage you will see how important this can be.
Now you remember (or at least I hope you do) that I advised you, when