createMenu
Create a new navigation menu container for a Brilliant Directories site. Requires a unique internal name and visible title. After creation, add menu items using the returned ID.
Instructions
Create a menu - Create a new menu record. Writes live data.
Use when: adding a new navigation container. After creating the container, add entries via createMenuItem using the returned menu_id.
Required: menu_name, menu_title.
Pre-check before create: BD does NOT enforce uniqueness on menu_name. Duplicates cause the wrong menu to render wherever the menu is referenced. Do a server-side filter-find: listMenus property=menu_name property_value=<proposed> property_operator==. Zero rows = name free; >=1 row = taken. Do NOT paginate unfiltered lists - filtered lookup is one tiny response. If taken: reuse via updateMenu, OR ask the user, OR pick an alternate menu_name and re-check. Never silently create a duplicate.
Parameter interactions:
menu_name(max 35 chars) - the internal identifiermenu_title- the visible headingmenu_active:0=Inactive,1=Active
See also: updateMenu (modify existing).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| menu_name | Yes | ||
| menu_title | Yes | ||
| menu_location | No | ||
| menu_div_id | No | ||
| menu_div_class | No | ||
| menu_div_css | No | ||
| menu_div_code | No | ||
| menu_effects | No | ||
| menu_active | No |