This code will create a simple bulleted list containing the top-level sections in your store.
Paste the following code just above the </head> tag in your overall page layout:
And then insert the following code in the main body of the page where you want the bulleted list to appear.
For more information about creating section lists with javascript see this article
Paste the following code just above the </head> tag in your overall page layout:
HTML Code:
<actinic:variable name="JavaScriptArray" value="All Data From Top Level Sections" /> <SCRIPT LANGUAGE = JavaScript> <!-- function BulletList(pItem) { var strIDs = '<ul>'; { for (var i = 1; i <= pItem.length; i++) { strIDs += '<li><a href=' + pItem[i].sURL + '>'+ pItem[i].sName + '</a></li>'; } } strIDs += '</UL>' return strIDs } --> </SCRIPT>
HTML Code:
<script language=Javascript1.2> document.write(BulletList(sections)) </script>