How to define dynamic menu

What is dynamic menu? Dynamic menu displays menu items on your website. It's so called 'dynamic' because if you add a subpage in your Website Admin area, new menu item will be displayed automatically on your website!
  1. Create a template, name it 'template_testing.html'.
  2. Define dynamic menu with tags:
    1. {%menu_start=1%} Menu '1' definition starts...
    2. {%menu_end=1%} Menu '1' definition ends...
    3. {%menu_href%} Menu item URL
    4. {%menu_display%} Menu item display name
  3. Define Menu! See examples below:

 

  1. Example, horizontal menu


    {%menu_start=1%}:: <a href="{%menu_href%}">{%menu_display%}</a>{%menu_end=1%} ::

    Result:

    :: Home :: About :: Products :: Contact

  2. Example, vertical menu


    {%menu_start=1%}:: <a href="{%menu_href%}">{%menu_display%}</a><br>{%menu_end=1%}

    Result:

    :: Home
    :: About
    :: Products
    :: Contact

  3. Example, horizontal table menu


    <table cellpadding='3' border='1'><tr>{%menu_start=1%}<td> <a href="{%menu_href%}">{%menu_display%}</a></td>{%menu_end=1%} </tr></table>

    Result:

    Home About Products Contact

See also How to define custom menu