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 297 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

Items are added in order
of appearance. The first parameter is the name, the second is the link location, and
the third is true if the item is the current menu item.
This screenshot depicts the given example, in the component My Extension, when
the selected task is Item1:
It is common to use this type of code in the root component file if one of the
sub-menu options is part of a different component. It's not uncommon for
components to use the core categories component to handle categories.
This is an example of a link we might add to the sub-menu if we were using the core
categories component to handle categories for the component com_myextension:
$link = 'index.php?option=com_categories§ion=com_myextension';
JSubMenuHelper::addEntry(JText::_('Categories'), $link);
There is one more thing that we can do with the sub-menu. We can remove it. This
is especially useful with views for which, when a user navigates away without
following the correct procedure, an item becomes locked.
If we modify the hidemainmenu request value to 1, the sub-menu will not be
displayed.


Pages:
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6