How to make newly added main menu option in magento admin section "selected" - magento

I have developed a new custom extension for magento admin section. Main menu option of this extension in admin section is visible. When I click on that menu option, functionality of this extension is working as per development/expected. But on this menu option "active" class is not being applied ( so that user can differentiate other menu option with this selected menu ).
There is no submenu under this main menu option. How can I apply "active" class on that menu option when this is clicked.
Thanks in advance!

You should use Mage_Adminhtml_Controller_Action::_setActiveMenu($menuPath) method.
For more details you can check Mage_Adminhtml_Cms_PageController::_initAction().

Related

show my joomla component to homepage

i have default home menu item in main menu which point to a default article.
I want to show my component (i.e com_mywelcomecomponent) into home page of my website.
If try to change the link of menu item to "external link" which point to my component, joomla show me an error
Save failed with the following error: The home menu item must be a
component.
how can i do this?
There is absolutely no issue why you cannot make your component as the home component. Login to administrator and then click on main menu. You will find a default menu item which is starred.
Click on that menu and when you go to that menu details just select your component as the default component.
When you open your site next time you will find your component on frontpage.
In Joomla, Home Menu cannot be an External Link.
You can still have your component linked to Home page, by selecting the Menu Type which will have your component listed in there and select the appropriate view and Save the Menu.
One easy option would be the Components Anywhere extension: https://www.regularlabs.com/extensions/componentsanywhere

How to create Sub Menus in Joomla 3.4?

I am just building out a Personal Portfolio Site using Joomla Platform under TemplateToaster Tool and want to know how to create submenus.I want to add a single Menu in Navigation Bar and want to add 3 submenus under the main menu.
Can anyone help me out of it.Any Joomla User ?
This can be done by creating menu items that have a "Parent Item" that is a menu item in your main menu. Note that your menu template must support nesting in order for these submenus to appear properly (most Joomla menu templates support nesting).

how to create a side menu which appears in all article in jooma

I want to create a side menu which appears along with article. I have created a side menu. But if i click on one menu item only the article is appearing. menu is not coming.
Hello you need to assign your article to a menu item and connect your side menu module to the menu item just created. If you want to hide that menu item so it is not visible on your main menu then create a new menu (called for example hidden-menu) and assign the menu item to it. This hidden menu does not need to be assign to a module to work. Hope i made myself clear :)

Joomla - Change main menu

Im newbie to Joomla. How do I change the main menu like screen below to my customize menu?
Menu
Create your own custom menu from the backend. Login to your administrator panel.
Menus->Menu Manager->Add New Manager
Enter the menu details and you will be able to see it in the drop down. Select menu type items and assign articles, contact etc to your newly created menu.
Now under Extensions tab click on Module Manager . Now manage your custom menu to the position you want it to display. Like if you want to display your custom menu as main menu then go to main menu and assign your menu to it under basic options and the position you want it to display.
Following are the links where you can find more help-
Joomla code help
Joomla docs
Not clear from your question that what you need to do but as per your menu image i will describe my answers.
If you need to change the position of menu then go to backend extension->Module Manager->select main menu and change position of main menu.
Also same you can change your custom menu positions.
If you need to change main menu and set custom menu instead of main menu then you need to change menu position and set position of custom menu from module manager.
Menu items will be added from the menus->select menu->add new menu items.
Not clear from your question that what you need to do but as per your menu image I will explain my answer below -
if you want to main menu to be a drop-down menu then you can use some free menu extension module of joomla like JB DropDown Menu or CK Megamenu, dropdown menu.

Article as homepage without menu connected

Is that possible to make a single article as homepage, but not connected with any menu item?
I'm using Joomla 1.7
No that is NOT technically possible - Joomla is menu driven.
But you could create a Menu Item (of type Article -> Single Article View) set it to be the default item (so it is your home page) and set the main menu module to not be shown on that page (if that is what you are trying to achieve).
The other option - is to create a new menu - for example called 'hidden'. Add your new menu item to this menu, and don't even have a module for this menu.
One or other of these options should do what you need.
In the article list, there is a flag that can be activated that says "Home Page".
That makes the article to be shown in the content area of your home page... just that.

Resources