home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 95 / af095a.adf / archives / extras.lzx / WebSite / PageText / L04p01.txt < prev    next >
Encoding:
Text File  |  1997-01-18  |  2.4 KB  |  41 lines

  1. L04p01.txtTEXTÍ®öÆ2®’šè<p>As you've doubtless realised by now this Web site uses menus which
  2. help guide you to areas of interest. You click on an item, the page 
  3. link gets activated, and the appropriate page (which may be a further
  4. menu) is then loaded. The menus therefore provide a simple way of allowing 
  5. a site user to move through the hierarchy of pages without needing 
  6. to know anything about the site's structure in advance.</p>
  7.  
  8. <p>Needless to say this menu-based approach can require the use of a 
  9. great many separate menu pages (in addition to the site pages that 
  10. contain the real information). More importantly a lot of page links 
  11. need to be maintained. Setting up this type of site can therefore not only 
  12. take a lot of time initially but, if you need to modify the menus
  13. (say to add or remove options from various pages), it can also easily 
  14. become a maintenance nightmare.
  15. </p>
  16.  
  17. <p>I've 'side stepped' these difficulties by writing a site creation 
  18. program that takes a shorthand definition of the menu structure needed
  19. and generates all the required pages (including the menu links) 
  20. automatically. Furthermore by keeping the information such as menu text,
  21. page titles and page content separately, I've been able to program the 
  22. generator so that it inserts this material directly into the pages 
  23. that it creates. The result is that I'm able to modify the menu structure 
  24. at any time and only have to hit a single button in order to rebuild 
  25. the new version of the site!</p> 
  26.  
  27. <p>You'll notice incidentally a <i>Page last updated</i> item present 
  28. at the bottom of any pages which contain text information. These dates 
  29. fields are also generated automatically and it's possible because, 
  30. whenever a file is changed in some way, an internal <strong>time stamp</strong> 
  31. field present in the file gets set to the current system date. Since 
  32. this happens as a matter of course whenever the contents of a file 
  33. containing Web page text is changed all I needed to do was extract the 
  34. information and use it. In short I wrote a small program which extracts 
  35. the date stamps of all site-related text files so that they can 
  36. subsequently be automatically incorporated into the appropriate 
  37. pages whenever the Web site is recreated - <strong>clever eh!</strong></p>
  38.  
  39.