ActiveWAFL Crash Course

The WAFL Cones Ice Cream Shop, Version 1.0

3.2 Setup the site's structure

Setting up the Wafl Cones website structure

An ActiveWAFL web application is organized into Site Areas and Site Pages.
This tree is referred to as a Site Structure.

We will setup the Site Structure according to the ice cream shop owner's requirements.

Wafl Cones' SiteStructure.syrp

  1. MainSection
  2.     LandingPage
  3.         Caption         =    "Wafl Cones Ice Cream Shop - Main Menu"
  4.         Controller      =    LandingPage
  5.         Presentation    =    LandingPage
  6.         DisplayOrder    =    1
  7.         IsDefault       =    1
  8.         Description     =    "Main Menu"
  9.         PreProcessCss   =    {false}
  10.    
  11.     Sale
  12.         Caption         =    "Wafl Cones Ice Cream Shop - Sale"
  13.         Controller      =    Sale
  14.         Presentation    =    Sale
  15.         DisplayOrder    =    2
  16.         IsDefault       =    0
  17.         Description     =    "Sale Screen"
  18.         PreProcessCss   =    {false}
  19.  
  20.     Administration
  21.         LandingPage
  22.             Caption         =    "Wafl Cones Ice Cream Shop - Administration Menu"
  23.             Controller      =    Administration/LandingPage
  24.             Presentation    =    Administration/LandingPage
  25.             DisplayOrder    =    1
  26.             IsDefault       =    1
  27.             Description     =    "Administration Menu"
  28.             PreProcessCss   =    {false}
  29.  
  30.         Flavors
  31.             Caption         =    "Wafl Cones Ice Cream Shop - Administration - Flavors"
  32.             Controller      =    Administration/Flavors
  33.             Presentation    =    Administration/Flavors
  34.             DisplayOrder    =    2
  35.             IsDefault       =    0
  36.             Description     =    "Flavor List"
  37.             PreProcessCss   =    {false}
  38.  
  39.         EditFlavor
  40.             Caption         =    "Wafl Cones Ice Cream Shop - Administration - Flavor Details"
  41.             Controller      =    Administration/EditFlavor
  42.             Presentation    =    Administration/EditFlavor
  43.             DisplayOrder    =    3
  44.             IsDefault       =    0
  45.             Description     =    "Flavor Details and Editing"
  46.             PreProcessCss   =    {false}
  47.  
  48.         Employees
  49.             Caption         =    "Wafl Cones Ice Cream Shop - Administration - Employees"
  50.             Controller      =    Administration/Employees
  51.             Presentation    =    Administration/Employees
  52.             DisplayOrder    =    4
  53.             IsDefault       =    0
  54.             Description     =    "Employee List"
  55.             PreProcessCss   =    {false}
  56.  
  57.         EditEmployee
  58.             Caption         =    "Wafl Cones Ice Cream Shop - Administration - Employee Details"
  59.             Controller      =    Administration/EditEmployee
  60.             Presentation    =    Administration/EditEmployee
  61.             DisplayOrder    =    5
  62.             IsDefault       =    0
  63.             Description     =    "Employee Details and Editing"
  64.             PreProcessCss   =    {false}
  65.  
  66.         Reports
  67.             LandingPage
  68.                 Caption         =    "Wafl Cones Ice Cream Shop - Administration - Reports Menu"
  69.                 Controller      =    Administration/Reports/Menu
  70.                 Presentation    =    Administration/Reports/Menu
  71.                 DisplayOrder    =    1
  72.                 IsDefault       =    1
  73.                 Description     =    "Administration - Reports Menu"
  74.                 PreProcessCss   =    {false}
  75.            
  76.             Sales
  77.                 Caption         =    "Wafl Cones Ice Cream Shop - Administration - Reports - Sales"
  78.                 Controller      =    Administration/Reports/Sales
  79.                 Presentation    =    Administration/Reports/Sales
  80.                 DisplayOrder    =    2
  81.                 IsDefault       =    0
  82.                 Description     =    "Administration - Reports - Sales"
  83.                 PreProcessCss   =    {false}
  84.  
  85.             SalesByFlavor
  86.                 Caption         =    "Wafl Cones Ice Cream Shop - Administration - Reports - Sales by Flavor"
  87.                 Controller      =    Administration/Reports/SalesByFlavor
  88.                 Presentation    =    Administration/Reports/SalesByFlavor
  89.                 DisplayOrder    =    3
  90.                 IsDefault       =    0
  91.                 Description     =    "Administration - Reports - SalesByFlavor"
  92.                 PreProcessCss   =    {false}
  93.  
  94.             Inventory
  95.                 Caption         =    "Wafl Cones Ice Cream Shop - Administration - Reports - Inventory"
  96.                 Controller      =    Administration/Reports/SalesByInventory
  97.                 Presentation    =    Administration/Reports/SalesByInventory
  98.                 DisplayOrder    =    3
  99.                 IsDefault       =    0
  100.                 Description     =    "Administration - Reports - SalesByInventory"
  101.                 PreProcessCss   =    {false}
  102.  
  103. SiteError
  104.     Caption         =   "Site Error"
  105.     Controller      =   Errors/ServerError
  106.     Presentation    =   Errors/ServerError
  107.     DisplayOrder    =   {false}

Next: Next: 3.3 Extensions & Controls