芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/tepakanyucatan.gob.mx/administrator/components/com_menus/presets/menus.xml
<?xml version="1.0"?> <menu xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:joomla.org" xsi:schemaLocation="urn:joomla.org menu.xsd" > <menuitem title="MOD_MENU_MENUS" type="heading" icon="list" class="class:list" > <menuitem title="MOD_MENU_MENU_MANAGER" type="component" element="com_menus" link="index.php?option=com_menus&view=menus" /> <menuitem title="MOD_MENU_MENUS_ALL_ITEMS" type="component" element="com_menus" link="index.php?option=com_menus&view=items&menutype=" /> </menuitem> <!-- Following is an example of repeatable group based on simple database query. This requires sql_* attributes (sql_select and sql_from are required) The values can be used like - "{sql:columnName}" in any attribute of repeated elements. The repeated elements are place inside this xml node but they will be populated in the same level in the rendered menu --> <menuitem type="separator" title="JSITE" icon="desktop" hidden="false" sql_select="a.id, a.title, a.menutype, CASE COALESCE(SUM(m.home), 0) WHEN 0 THEN '' WHEN 1 THEN CASE m.language WHEN '*' THEN 'class:icon-home' ELSE CONCAT('image:', l.lang_code) END ELSE 'image:mod_languages/icon-16-language.png' END AS icon" sql_from="#__menu_types AS a" sql_where="a.client_id = 0" sql_leftjoin="#__menu AS m ON m.menutype = a.menutype AND m.home = 1 LEFT JOIN #__languages AS l ON l.lang_code = m.language" sql_group="a.id, a.title, a.menutype, m.language, l.lang_code" sql_order="a.id DESC" sql_target="self" > <menuitem title="{sql:title} " type="component" element="com_menus" link="index.php?option=com_menus&view=items&menutype={sql:menutype}" icon="{sql:icon}" class="class:menu" quicktask="index.php?option=com_menus&task=item.add&menutype={sql:menutype}" quicktask-title="MOD_MENU_MENU_MANAGER_NEW_SITE_MENU_ITEM" /> </menuitem> <menuitem type="separator" title="JADMINISTRATOR" icon="desktop" hidden="false" sql_select="title, menutype" sql_from="#__menu_types" sql_where="client_id = 1" sql_order="id DESC" sql_target="self" > <menuitem title="{sql:title}" type="component" element="com_menus" link="index.php?option=com_menus&view=items&menutype={sql:menutype}" class="class:menu" quicktask="index.php?option=com_menus&task=item.add&client_id=1&menutype={sql:menutype}" quicktask-title="MOD_MENU_MENU_MANAGER_NEW_ADMIN_MENU_ITEM" /> </menuitem> </menu>