|In Joomla! 1.5, form fields were parameters. For that version, you may want to use the corresponding Menuitem parameter type.|
The menuitem form field type provides a drop down list of the available menu items from your Joomla site.
The first option on the list is always '- Select Item -' (which is a translatable string) and is given the value 0.
The first item on the list will always have the ' - Top' (which is a translatable string) appended to it.
Example XML field definition:
<field name="mymenuitem" type="menuitem" default="45" label="Select a menu item" description="Select a menu item" />
The above description is wrong. "state" is not a supported attribute for the menuitem type. Instead, use the attribute "published" with a value of 0 for unpublished items or 1 for published ones. Omit the attribute altogether for both published and unpublished items.