Knowledge Base support case for AllWebMenus, abstracted and stripped of all user’s private info.


Initial Email From:
User
Initial Email Subject: Server side api vs dreamweaver recordset
Support Case Month: March 2013

I just seem to be able to get the Server Side api running with Dreamweaver cs5.5. I get the menu on screen, but under "Onderafdelingen" I am trying to get results from a recordset and I can't get/understand how to do this. I read the help files but didn't understand half of it. Also examples didn't really work for me. Please, help.
Related URL: http://testworks.nl/testmenu.php

Reply From: Likno Customer Support

Hello,

I am afraid that the original API was not designed for responsive versions.

It is still possible to use it for responsive menus, but in this case you will have to add your extra items to the structure of each one of the responsive versions.

For example, if you want to add a submenu to “Onderafdelingen” and then add an extra item, first you need to know the ID of “Onderafdelingen”:

view or edit menu structure variables

For example:

menu structure

In your case, the “Onderafdelingen” item has id=”awm_I18”. The responsive version IDs will have an extra “rmX” like so:

awm_I18
awm_rm2I18
awm_rm3I18
awm_rm4I18

So then the code you need is:

subMenu = awm_I18.newGroup('style=sub_group_style')
subItem = subMenu.newItem('style=sub_item_style;text0=My New Item;url=myUrl.html');
subMenu = awm_rm2I18.newGroup('style=sub_group_style')
subItem = subMenu.newItem('style=sub_item_style;text0=My New Item;url=myUrl.html');
subMenu = awm_rm3I18.newGroup('style=sub_group_style')
subItem = subMenu.newItem('style=sub_item_style;text0=My New Item;url=myUrl.html');
subMenu = awm_rm4I18.newGroup('style=sub_group_style')
subItem = subMenu.newItem('style=sub_item_style;text0=My New Item;url=myUrl.html');

Best Regards,
Kostas
Likno Customer Support
www.likno.com
Create any type of javascript menu (CSS menu, drop-down menu, sliding menu), button, html tree, modal window, tooltip, accordion, tab, scroller, jQuery slider or design for your websites!
Like us on Facebook – Follow us on Twitter

Tags: , , , , , , ,