SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 135 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

$control_name.'['.$name.']', $class, 'value', 'text', $value,
$control_name.$name);
}
}
Using Custom JElement Classes
To use our JElementMenus class we need to do more than add a param tag
of type 'menus' to our XML file. We need to tell Joomla! where it can find the
JElementMenus class. To do this we use the addpath attribute.
Building on our previous example of a component config.xml file, this XML
defines another parameter, using the menus type JElement (assuming that
the JElementMenus class is located in the administrator/components/
com_myextension/elements folder):



label="Title" description="Title of page" size="30" />
Chapter 4
[ 99 ]
label="Description" rows="5" cols="50"
description="Description to display at the top of the page." />
description="Test JElementMenus" default="3">
Group 1




Group 2






If we attempt to make a menu item using this XML metadata file the Menu Item
Parameters panel will appear like this:
Help Files
The Joomla! core components use special help files, which can be displayed in the
backend using the menu bar button, help.


Pages:
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147