Location: PHPKode > projects > Spitfire CMS > html/kontextmenu.xml
<!-- 
Elemente:
	menu      - Ein menüpunkt der Unterpunkte hat
	entry     - Ein einzelner Menüpunkt
	list      - eine Liste von Menüpunkten, die über den Namen bestimmt wird.
	seperator - Eine Trennlinie

Attribute:
	name      - Name des Menüpunktes
	path      - Pfad zur Übersetzung des Menüpunktes (muss direkt hinter dem Namen stehen)
	icon      - Name des Bildes das zum Menüpunkt angezeigt werden soll
	action    - Aktion die Ausgeführt werden soll, wenn der Menüpunkt angeklickt wird
	actionvalue - zusätzliche Parameter die der Aktion mitgegeben werden
	window    - Die aktion soll in einem Fenster ausgeführt werden
	sidebar   - Bei aktiver Sitebar soll kein Fenster geöffnet, sondern die Sitebar verwendet werden
	enable_if - Bedingung die erfüllt sein muss, damit der Menüpunkt aktiv ist
	disable_if- Bedingung die erfüllt sein muss, damit der Menüpunkt deaktiv ist
	action_if - Bedingung die erfüllt sein muss, damit die Aktion des Menüpunktes ausgeführt wird (bei onclick)
	show_if   - Bedingung die erfüllt sein muss, damit der Menüpunkt sichtbar ist
	hide_if   - Bedingung die erfüllt sein muss, damit der Menüpunkt unsichtbar ist
	active_if - Bedingung die erfüllt sein muss, damit das bild vor dem Menüpunkt durch einen Haken ersätzt wird
	highlight_content - Bereich der bei aktivem Menüpunkt hervorgehoben werden soll
-->
<menues>
	<menu name="main">
		<entry name="online mode" icon="online" action="swapOnlineMode" show_if="set_online_mode" />
		<entry name="offline mode" icon="offline" action="swapOnlineMode" show_if="set_offline_mode" />
		<entry name="swap edit mode" icon="edit" action="swapEditMode" />
		<entry name="tickets" icon="ticket" action="ticket" window="true" show_if="ticket" />
		<entry name="changes" icon="changes" action="show changes" hide_if="ticket" window="true" />
		<seperator></seperator>
		<entry name="user settings" icon="setting" action="user settings" window="true" />
		<entry name="user management" icon="user" action="user management" window="true" show_if="may_edit_users" />
		<entry name="system settings" icon="system" action="system settings" window="true" show_if="is_admin" />
		<seperator></seperator>
		<entry name="help" icon="help" action="help" />
		<seperator></seperator>
		<entry name="open sidebar" icon="sidebar" action="open sidebar" disable_if="sidebar" />
		<entry name="logout" icon="logout" action="logout" />
	</menu>
	
	<menu name="edit">
		<entry name="edit" icon="edit" action="edit" window="true" highlight_content="element" />
		<menu name="online" icon="online" action="online group" show_if="may_set_online" highlight_content="group online">
			<!-- <entry name="element" icon="element" action="online element" disable_if="disable_element" highlight_content="element" /> -->
			<menu name="deleted" icon="delete" action="online group" enable_if="enable_deleted" show_if="disable_group">
				<entry name="now" icon="now_online" action="online group" />
				<entry name="timer" icon="timer" action="set timer" actionvalue="online group" window="true" />
			</menu>
			<menu name="deleted" icon="delete" action="online deleted" show_if="enable_deleted" hide_if="disable_group">
				<entry name="now" icon="now_online" action="online deleted" />
				<entry name="timer" icon="timer" action="set timer" actionvalue="online deleted" window="true" />
			</menu>
			<menu name="group" icon="group" action="online group" hide_if="disable_group" highlight_content="group online">
				<entry name="now" icon="now_online" action="online group" highlight_content="group online" />
				<entry name="timer" icon="timer" action="set timer" actionvalue="online group" window="true" highlight_content="group online" />
			</menu>
			<menu name="list" icon="list" action="online list" disable_if="disable_list" hide_if="hide_list" highlight_content="list online">
				<entry name="now" icon="now_online" action="online list" highlight_content="list online" />
				<entry name="timer" icon="timer" action="set timer" actionvalue="online list" window="true" highlight_content="list online" />
			</menu>
			<!-- 
			<seperator></seperator>
			<entry name="immediately" action="online immediately" active_if="immediately_online" />
			-->
		</menu>
		<menu name="offline" icon="offline" show_if="may_set_online">
			<!-- <entry name="element" icon="element" action="offline element" enable_if="online" disable_if="disable_element" highlight_content="element" /> -->
			<menu name="group" icon="group" action="offline group" hide_if="disable_group" highlight_content="group">
				<entry name="now" icon="now_offline" action="offline group" highlight_content="group" />
				<entry name="timer" icon="timer" action="set timer" actionvalue="offline group" window="true" highlight_content="group" />
			</menu>
			<menu name="list" icon="list" action="offline list" disable_if="disable_list" hide_if="hide_list" highlight_content="list">
				<entry name="now" icon="now_offline" action="offline list" highlight_content="list" />
				<entry name="timer" icon="timer" action="set timer" actionvalue="offline list" window="true" highlight_content="list" />
			</menu>
		</menu>
		<menu name="timer" icon="timer_delete" show_if="may_set_online" enable_if="timer">
			<list name="timer">
				<entry name="edit" icon="timer" action="set timer" window="true" />
				<entry name="delete" icon="delete" action="delete group timer">
					<entry name="group" icon="group" action="delete group timer" />
					<entry name="complete" icon="list" action="delete complete timer" />
				</entry>
			</list>
		</menu>
		<menu name="settings" icon="setting" action="element settings" window="true" show_if="is_admin">
			<entry name="element" icon="element" action="element settings" window="true" />
			<entry name="list" icon="list" action="list settings" window="true" />
			<!-- <entry name="kontextmenu" icon="kontextmenu" action="kontextmenu settings" window="true" /> -->
		</menu>
		<seperator show_if="may_set_online">></seperator>
		<menu name="cut" icon="cut" action="cut group" disable_if="disable_group" highlight_content="group">
			<!-- <entry name="element" icon="element" action="cut element" disable_if="disable_element" highlight_content="element" /> -->
			<entry name="group" icon="group" action="cut group" highlight_content="group" />
			<entry name="list" icon="list" action="cut list" hide_if="hide_list" highlight_content="list" />
		</menu>
		<menu name="copy" icon="copy" action="copy group" disable_if="disable_group" highlight_content="group">
			<!-- <entry name="element" icon="element" action="copy element" disable_if="disable_element" highlight_content="element" /> -->
			<entry name="group" icon="group" action="copy group" highlight_content="group" />
			<entry name="list" icon="list" action="copy list" hide_if="hide_list" highlight_content="list" />
			<menu name="export" icon="export" action="export" actionvalue="group" window="true" show_if="is_admin" >
				<entry name="group" icon="group" action="export" actionvalue="group" window="true" highlight_content="group" />
				<entry name="list" icon="list" action="export" actionvalue="list" window="true" hide_if="hide_list" highlight_content="list" />
			</menu>
		</menu>
		<menu name="paste" icon="paste" action="paste" action_if="copy_exists">
			<entry name="new" icon="new" action="paste new" disable_if="disable_group" hide_if="hide_list" />
			<entry name="as cut" icon="cut" action="paste" show_if="cut" enable_if="copy_exists" />
			<entry name="as copy" icon="copy" action="paste" show_if="copy" enable_if="copy_exists" />
			<entry name="as link" icon="link" action="paste link" enable_if="copy_is_group" />
			<menu name="settings" icon="setting" action="paste element settings" show_if="is_admin" enable_if="copy_exists" >
				<entry name="element" icon="element" action="paste element settings" />
				<entry name="list" icon="list" action="paste list settings" />
			</menu>
			<entry name="import" icon="import" action="import" window="true" show_if="is_admin" />
		</menu>
		<menu name="delete" icon="delete" disable_if="disable_group">
			<!-- <entry name="element" icon="element" action="delete element" highlight_content="element" /> -->
			<menu name="group" icon="group" action="delete group" highlight_content="group">
				<entry name="to trash" icon="delete" action="delete group" highlight_content="group" />
				<entry name="to archive" icon="archive" action="archive group" highlight_content="group" />
			</menu>
			<menu name="list" icon="list" action="delete list" hide_if="hide_list" highlight_content="list">
				<entry name="to trash" icon="delete" action="delete list" highlight_content="list" />
				<entry name="to archive" icon="archive" action="archive list" highlight_content="list" />
			</menu>
		</menu>
		<seperator></seperator>
		<menu name="history" icon="history" enable_if="history">
			<list name="history" action="goto history element" disable_if="is_active" active_if="is_active"></list>
		</menu>
		<entry name="archive" icon="archive" action="show archive" window="true" disable_if="disable_list" />
		<seperator show_if="has_link"></seperator>
		<entry name="linked to" icon="link" action="goto link" show_if="link" />
		<menu name="linked from" icon="link" show_if="linked">
			<list name="linked" action="goto link"></list>
		</menu>
	</menu>
	
	<menu name="mode">
		<menu name="online" icon="online" action="online list" show_if="may_set_online" highlight_content="list">
			<menu name="list" icon="list" action="online list" disable_if="disable_list" highlight_content="list online">
				<entry name="now" icon="now_online" action="online list" highlight_content="list online" />
				<entry name="timer" icon="timer" action="set timer" actionvalue="online list" window="true" highlight_content="list online" />
			</menu>
			<!--
			<seperator></seperator>
			<entry name="immediately" action="online immediately" />
			-->
		</menu>
		<menu name="offline" icon="offline" disable_if="disable_list" show_if="may_set_online">
			<menu name="list" icon="list" action="offline list" highlight_content="list">
				<entry name="now" icon="now_offline" action="offline list" highlight_content="list" />
				<entry name="timer" icon="timer" action="set timer" actionvalue="offline list" window="true" highlight_content="list" />
			</menu>
		</menu>
		<menu name="timer" icon="timer" show_if="may_set_online" enable_if="timer">
			<list name="timer">
				<entry name="delete" icon="delete">
					<entry name="complete" icon="list" action="delete complete timer" />
				</entry>
				<entry name="edit" icon="timer" action="set timer" window="true" />
			</list>
		</menu>
		<menu name="settings" icon="setting" action="element settings" window="true" show_if="is_admin">
			<entry name="element" icon="element" action="element settings" window="true" />
			<entry name="list" icon="list" action="list settings" window="true" />
			<!-- <entry name="kontextmenu" icon="kontextmenu" action="kontextmenu settings" window="true" /> -->
		</menu>
		<seperator show_if="may_set_online"></seperator>
		<entry name="cut" icon="cut" path="cut/list" action="cut list" disable_if="disable_group" highlight_content="list" />
		<entry name="copy" icon="copy" path="copy/list" action="copy list" disable_if="disable_group" highlight_content="list" />
		<menu name="paste" icon="paste" action="paste" action_if="copy_exists">
			<entry name="as cut" icon="cut" action="paste" show_if="cut" enable_if="copy_exists" />
			<entry name="as copy" icon="copy" action="paste" show_if="copy" enable_if="copy_exists" />
			<entry name="as link" icon="link" action="paste link" enable_if="copy_is_group" />
		</menu>
		<menu name="delete" icon="delete" path="delete/list" action="delete list" disable_if="disable_group" highlight_content="list">
			<entry name="to trash" icon="delete" action="delete list" highlight_content="list" />
			<entry name="to archive" icon="archive" action="archive list" highlight_content="list" />
		</menu>
		<seperator></seperator>
		<menu name="history" icon="history" enable_if="history">
			<list name="history" action="goto history element"></list>
		</menu>
		<entry name="archive" icon="archive" action="show archive" window="true" disable_if="disable_list" />
		<seperator show_if="linked"></seperator>
		<menu name="linked from" icon="link" show_if="linked">
			<list name="linked" action="goto link"></list>
		</menu>
	</menu>
</menues>
Return current item: Spitfire CMS