Skip to content

Files

Latest commit

 

History

History
64 lines (53 loc) · 2.14 KB

quicktasklink.md

File metadata and controls

64 lines (53 loc) · 2.14 KB

Quicktask Link and Icon

In general, a component has has one or more links to its views. They are defined in the manifest file and added to the menu during installation.

<administration>
	<menu>
		COM_EXAMPLE
	</menu>
	
	[..]
</administration>

Sometimes it is useful to add a so called quicktask link which enables an action calling from the menu without first visiting the Overview. You can see this for Joomla core components, for example articles in com_content, here the quicktask is the plus icon and lets you add a new article in a single click. Your menu link is added in the manfest file during installation.

Qicktask link

A quicktask link and icon are added as params to a menu item.

	<menu link="option=com_example&amp;view=examples">
		COM_EXAMPLE
		<params>
			<menu-quicktask-title>COM_EXAMPLE_MENU_QUICKTASK_TITLE</menu-quicktask-title>
			<menu-quicktask>index.php?option=com_example&amp;view=example&amp;layout=edit</menu-quicktask>
		</params>
	</menu>

Example

This example shows a complete menu entry with dashboard, submenu and a quicktask.

		<menu>
			COM_EXAMPLE
			<params>
				<dashboard>example</dashboard>
			</params>
		</menu>
		<submenu>
			<menu link="option=com_example">
				COM_EXAMPLE_MENU
				<params>
					<menu-quicktask-title>COM_EXAMPLE_MENU_QUICKTASK_TITLE</menu-quicktask-title>
					<menu-quicktask>index.php?option=com_example&amp;view=example&amp;layout=edit</menu-quicktask>
				</params>
			</menu>
			<menu link="option=com_categories&amp;extension=com_example">
				COM_EXAMPLE_MENU_CATEGORIES
				<params>
					<menu-quicktask-title>COM_EXAMPLE_MENU_CATEGORIES</menu-quicktask-title>
					<menu-quicktask>index.php?option=com_categories&amp;view=category&amp;layout=edit&amp;extension=com_example</menu-quicktask>
				</params>
			</menu>
			<menu link="option=com_fields&amp;view=fields&amp;context=com_example,example">COM_EXAMPLE_MENU_FIELDS</menu>
			<menu link="option=com_fields&amp;view=groups&amp;context=com_example,example">COM_EXAMPLE_MENU_FIELDS_GROUP</menu>
		</submenu>