I have a number of Template Styles. If I change the default Style, I can see that my Styles are working. The Style actually changes. But for a week I have been trying to find out why my menu assignment doesn't work. I'm completely baffled.
So I have found two possible places where I could possibly change my Style per menu item. Either in Template Manager: Edit Style -> Menus assignment -> ticking the menu item. Or Menu Manager: Edit Menu Item -> Changing Template Style. I have tried these settings a hundred times. Those settings have absolutely no effect.
Where can I change the Style so that I get different Style for each menu item (by menu item I mean the page opened by the menu item)?
Try to create separate style files like mymenu1style.php, mymenu2style.php etc. together with corresponding XML files as it is described at http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6 in Menus section of that document
Then assign each style in Menu Manager "Edit Menu Item -> Changing Template Style"
I found the answer. I didn't use the actual Joomla menus before so I didn't know what links they produce. And there was a trick in the links they produce. On Menu Manage: Edit Menu Item there is the Link for the menu item ready for copypaste. However, this link is for example:
index.php?option=com_content&view=article&id=65
and the Itemid variable is missing from that! If it's missing, the template style will be the default one instead of the assigned one! So the correct link is, for example:
index.php?option=com_content&view=article&id=65&Itemid=205 (note exact cases on Itemid) (the Itemid, aka ID, is in fact also on the same Edit Menu Item page, but just separately)
Or the other correct link is, after enabling Global Configuration / Site / SEO Settings / SEF URLs Yes:
http://site.com/index.php/menualias
That would also render with the assigned template. Or without the index.php/ part with the URL rewriting option.
So, which overrides which: the Edit Menu Item / Template Style setting or the Template Manager: Edit Style Menus assignments? The answer is, according to my test, if you keep the EMI Template Style as - Use Default -, then you can change it from Menus assignments. In other cases, the last saved situation overrides. If you have EMI Template Style set to mystyle1 and Menus assignments the same page is set to mystyle2, the latter will override while the EMI Template Style remains set to mystyle1. So it's a bit confusing. Then if for the page you change EMI Template Style to mystyle3, that will blank out the Menus assignments setting and therefore override that.
Related
Default menu of magneto, child items are showed in dropdown list.
I need to change them as submenu bellow main menu (as image).
I tried to change my source code at menu block. But It complex to change and very impact to other blocks.
Is there any other way to do?
I have menu in which there are two levels. After I added the third and fourth level of categories from the back end, I want the third sub-category in the menu to be displayed differently I want to change its appearance. Can i do it in back end custom design? Or where should I look for the code? I have tried editing the top menu p html
You should edit the relevant PHTML file in order to do this.
Sometimes you will have to edit menu.js as well written in prototype. if you are not familiar with it use a jQuery code.
I have a custom made Joomla 3.2 template and am now trying to make it bilingual. Let's start with the modules:
I have one language switcher module, set to position "language". This position is referenced in the xml file and in the index file using the jdoc:include statement.
I have two menu modules, one for each language, both are set to be on the same position.
Menu's:
I have one menu with one menu item that is set to default and the language is set to all. The menu item's access is set to public and it is not published.
The other two menu's I have are the English and German menu. The menu item's of both menu's are set to the corresponding language, linked to an article and associated with the corresponding menu item of the other language.
All I get on the front end is the English site, the language switcher module is showing, however, I can only ever see the British flag. The German one does not appear.
Trying to change the URL's ending from index.php/en/ to index.php/de/ does not work either.
Found the problem, I had a small mistake in the German language tag. What I had was "de - DE" what I should have had was: "de-DE". Without spaces.
Note that by changing the language tag in the language manager, all articles and menu items that you set to that particular language will disappear. Just make sure that after you change the language tag you also check your menu items and article. If you don't they will not show up on the front end.
Has been some time till I last worked in Joomla (that was verion 1.5.x)
In Joomla 3.0 the Menu parameters seems to be missing. Adding the parameter helped identifying what menu item has been clicked. The problem I am having now is that if I use the same component for two different menu items in the main menu - it will basically do the same.
BEFORE (Example):
Menu Item (1) - Landscape pictures (Menu parameter is set to 1)
-> Calls com_picturegallery
-> See's that parameter is ONE and select statement of component filters for all landscape pictures.
Menu Item (2) - Urban pictures (Menu parameter is set to 2)
-> Calls com_picturegallery
-> See's that parameter is TWO and select statement of component filters for all urban pictures.
In Joomla 3.0 i cannot find an option to set these parameters in the menu settings for main menu.
Does anyone know how else to tell Joomla that depending on menu I click the component has to do a specific task.
Thanks!
This is how it works - I suppose it has been also best practice in Joomla 1.5.x
$menu = JSite::getMenu();
$alias = $menu->getActive()->alias;
Is there any way to highlight the current menu which have been clciked.I am using left-mnu.jsp in which i have all the menu which i am including in each jsp pages.Now i use a variable clicked and update this variable to some value when i open main jsp pages.Then am checking this variable in left-menu.jsp to highlight the appropriate menu.I know this is not a good approach.Can any one suggest me a good one for highlighting menu.
You can do that with CSS only, setting the id of the home with a word related to the id of the selected menu item, like described here.
Or with Javascript, matching the URL of the current page with the URL of the menu items (if they're href), like described here (approach #2)
Or do it with JSP tags, etc...