[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_menus/presets/ -> menus.xml (source)

   1  <?xml version="1.0"?>
   2  <menu
   3      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   4      xmlns="urn:joomla.org"
   5      xsi:schemaLocation="urn:joomla.org menu.xsd"
   6      >
   7      <menuitem
   8          title="MOD_MENU_MENUS"
   9          type="heading"
  10          icon="list"
  11          class="class:list"
  12          >
  13          <menuitem
  14              title="MOD_MENU_MENU_MANAGER"
  15              type="component"
  16              element="com_menus"
  17              link="index.php?option=com_menus&amp;view=menus"
  18          />
  19  
  20          <menuitem
  21              title="MOD_MENU_MENUS_ALL_ITEMS"
  22              type="component"
  23              element="com_menus"
  24              link="index.php?option=com_menus&amp;view=items&amp;menutype="
  25          />
  26      </menuitem>
  27  
  28      <!--
  29      Following is an example of repeatable group based on simple database query.
  30      This requires sql_* attributes (sql_select and sql_from are required)
  31      The values can be used like - "{sql:columnName}" in any attribute of repeated elements.
  32      The repeated elements are place inside this xml node but they will be populated in the same level in the rendered menu
  33      -->
  34      <menuitem
  35          type="separator"
  36          title="JSITE"
  37          icon="desktop"
  38          hidden="false"
  39          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"
  40          sql_from="#__menu_types AS a"
  41          sql_where="a.client_id = 0"
  42          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"
  43          sql_group="a.id, a.title, a.menutype, m.language, l.lang_code"
  44          sql_order="a.id DESC"
  45          sql_target="self"
  46          >
  47          <menuitem
  48              title="{sql:title} "
  49              type="component"
  50              element="com_menus"
  51              link="index.php?option=com_menus&amp;view=items&amp;menutype={sql:menutype}"
  52              icon="{sql:icon}"
  53              class="class:menu"
  54              quicktask="index.php?option=com_menus&amp;task=item.add&amp;menutype={sql:menutype}"
  55              quicktask-title="MOD_MENU_MENU_MANAGER_NEW_SITE_MENU_ITEM"
  56          />
  57      </menuitem>
  58  
  59      <menuitem
  60          type="separator"
  61          title="JADMINISTRATOR"
  62          icon="desktop"
  63          hidden="false"
  64          sql_select="title, menutype"
  65          sql_from="#__menu_types"
  66          sql_where="client_id = 1"
  67          sql_order="id DESC"
  68          sql_target="self"
  69          >
  70          <menuitem
  71              title="{sql:title}"
  72              type="component"
  73              element="com_menus"
  74              link="index.php?option=com_menus&amp;view=items&amp;menutype={sql:menutype}"
  75              class="class:menu"
  76              quicktask="index.php?option=com_menus&amp;task=item.add&amp;client_id=1&amp;menutype={sql:menutype}"
  77              quicktask-title="MOD_MENU_MENU_MANAGER_NEW_ADMIN_MENU_ITEM"
  78          />
  79      </menuitem>
  80  </menu>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer