Excerpt | ||
---|---|---|
| ||
menu-category - defines new first-level menu's item. |
Overview
This module is used for defining new first-level menu's item.
Module's schema is defined in menu.xsd.
Attributes
name | type | required | description |
---|---|---|---|
name | string | yes | Name of the menu's category. |
Example
Please find below an example of plugin defining one menu's category module. Lines 8 contains a module which defines new first-level menu's item sampleCategory.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?>
<plugin plugin="samplePlugin" version="1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://schema.qcadoo.org/plugin"
xmlns:model="http://schema.qcadoo.org/modules/menu"
xsi:schemaLocation="http://schema.qcadoo.org/plugin http://schema.qcadoo.org/plugin.xsd http://schema.qcadoo.org/modules/menu http://schema.qcadoo.org/modules/menu.xsd">
<menu:menu-category name="sampleCategory" />
</plugin> |