To give you a feel of how easy it is to create menus, we begin this chapter with a typical example. For this, create the following file in the by now familiar fileadmin/_temp
directory and call it hello.htm:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Working on menus</title> <link href="css/css.css" rel="stylesheet" type="text/css" /> </head> <body> <!-- ###BODY_CONTENT### --> <div>###MENU###</div> <!-- ###BODY_CONTENT### --> </body> </html>
Only the ###MENU###
marker was created with this code. The illustrated file forms the basis for all other examples in this chapter. The following TypoScript code, when inserted into the Setup of the root page, creates simple text navigation from the familiar page structure:
temp.mainTemplate = TEMPLATE temp.mainTemplate { template = FILE template.file = fileadmin/_temp_/hello.htm } page = PAGE page.typeNum = 0 page...