spw
Member
Posts: 44
Registered: 12/8/2005
Location: Australia
Member Is Offline
|
| posted on 12/9/2005 at 04:42 PM |
|
|
Documentation is wrong??? MENU_POS vs MENU_TPL
Tigra Gold documentation shows the text we need to include as follows:
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_POS);
</script>
or
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_POS, {'frames' : MENU_FRAMES});
</script>
HOWEVER, the menu system is expecting MENU_TPL not MENU_POS.
I have changed my version of the documentation and have also let Tigra know – they are currently reviewing the documentation and will hopefully
correct the online documentation soon.
|
|
|
tigra
Administrator
Posts: 1926
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 1/21/2006 at 04:20 PM |
|
|
you can give variables any names as long as they match the name you specify in the menu constructor. I.e. you can have:
MENU_POS in template.js and then the constructor will be:
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_POS);
</script>
or you can have MENU_TPL in template.js then the constructor will be:
<script language="JavaScript">
new menu (MENU_ITEMS, MENU_TPL);
</script>
same is true for the MENU_ITEMS.
also you can rename configuration files if you feel like it.
|
|
|