Most of the time we have to face many difficulties search specific joomla modules that assigned to specific menu item. Currently (joomla 1.5x) joomla provide categorization of modules under fallowing four way
After modification:

- According to template
- According to Position
- According to Type
- According to State
My new modification will add another categorization for module as According to assigned menu. This is simple add stride forward.
Step 01:
Go to administrator\components\com_modules\toolbar.modules.html.php and past as fallow
Existing one (line 49)
echo $lists['assigned'];
echo $lists['position'];
echo $lists['type'];
echo $lists['state'];
After modified
echo $lists['assigned'];
echo $lists['position'];
echo $lists['type'];
echo $lists['state'];
echo $lists['menu'];
Step 02:
Go to administrator\components\com_modules\toolbar.modules.html.php and add fallowing(After line: 64)
$filter_menu = $mainframe->getUserStateFromRequest( $option.'filter_menu','filter_menu','','cmd' );
Go to administrator\components\com_modules\toolbar.modules.html.php and add fallowing(After line: 95)
if ( $filter_menu ) {
$where[] = 'mm.menuid = '.$db->Quote($filter_menu);
}
Go to administrator\components\com_modules\toolbar.modules.html.php and add fallowing(After line: 174)
$query = 'SELECT id AS value, name AS text'
. ' FROM #__menu';
$db->setQuery( $query );
$menu[] = JHTML::_('select.option', '0', '- '. JText::_( 'Select Menu' ) .' -' );
$menu = array_merge( $types, $db->loadObjectList() );
$lists['menu'] = JHTML::_('select.genericlist', $menu, 'filter_menu', 'class="inputbox" size="1" onchange="this.form.submit()"', 'value', 'text', "$filter_menu" );
now that is enough.
Before modification:
I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.You can also visit our site.
ReplyDeletejoomla extensions