Hidden Menu clicked, trigger main menu active states Joomla - joomla

I've ask this question on Joomla Official Forums-http://forum.joomla.org/viewtopic.php?t=862922&f=706
But no one is able to help.
I need some help, I'm new to Joomla, I've created a website for my friend- http://www.maverikswarehouse.com
I'm stuck on the menus active states
I'm using FavouriteDark theme
I've created a Hidden Menu, these have category blogs in them, how do I make the Main Menu items in active state while one of the posts in hidden menu is clicked?
For example- I click on Gallery, then i click on one of the items, it will redirect to an article post, but the Gallery Menu is no longer active. How do I make it active?

The easiest way would be to have the hidden menu items as submenu-items of your visible menus. Like this:
Mainmenu:
Gallery
Item 1
Item 2
Other
Menu
Items
...
Now, if you go to Item 1, Gallery will get the class=active, and you can use this to style it. So now all you have to do is make sure leve2 two of your menu is not displayed. This can be done in many ways, the easiest to configure this in the module, where you can set which levels should display. If this does not work for you, you can hide individual items setting display:none on each item you want to hide.

Related

how to make the front page of joomla consist of only one article, or one section?

Currently, the joomla front page consists of latest news and several articles and list, basiclly i want to change the layout of this to just one specific article.
Changing the home button properties on the menu page doesnt do the trick as thats not the same as the front page.
Go to the menu manager and find the default menu item. It is marked with a star. Edit that item. If it is using a frontpage/featured layout you can tell it exactly how many featured articles do display by changing the parameters. OR you can change the menu item o a single article or a category or whatever you want.

Add the "current" id to two differents items in two differents menu in joomla 1.7

I have an article (with the id=6) on joomla 1.7
I have the main menu. In that menu, I created the item that show me only one article, the article with the id=6.
I have a secondary menu, that have 3 differents items. One of them, I have to link it to the same article with the id=6.
The problem is, that I need to add the "current" id to the item at the main menu, and in the item of the secondary menu, because both are links to the same article, so I have to highlight them.
By default, the system add me the current id to one item only when I click on that item, and doesn't when I show the same article that the item links.
Any help? thank you.
What happens if you change the second menu item to the type of 'Alias' and select the original menu item in the right hand side options?
Now instead of having two menu items with different internal menu ItemIds you have two items with the same ItemId. As long as your css is correct they should both be highlighted (or should that be highlit?).

Joomla Menu display in different website parts

I'm using Joomla 1.5 version and a strange behaviour came up regarding menus displaying.
In my default menu I have a menu item of "Front Page Blog Layout" type to display some news in my home page.
Everything was fine when I had only a menu assign for my whole website. The module that display the menu had the option "All" selected in "Menu Assignment" group.
But, when I choose the items for the menu to e displayed through "Select Menu Item(s)", the menu is not displayed when I try to see a news detail in the home page, even if I have all the items selected. It only work with "All" option selected.
Is there any difference between option "All" and select all items with the option "Select Menu Item(s)" selected?
I need this behaviour because I need several menus in my website that are displayed in different parts. Without this behaviour I can't use different menus across my website :( because some pages stay without a menu.
Any hint, workaround?
there's a difference between checking "All" and marking all items in "Select Menu Item(s)".
In first case module is always displayed and in second one module checks for Itemid value. If theres no Itemid value set or it doesn't match the selected items - module is not displayed.
My suggestion is to create a new menu in menu manager, which is not displayed in any module, and assign pages to it. So every page you want a custom display would have it's own Itemid.
Im glad i could help. If you assign article for a category, and make a category link in menu or hidden menu, i think it should display menu for all articles in chosen category.

URLs in module not pointing the correct category from index page

I have 2 modules on my home page. One lists most popular, one lists most recent k2 items from 2 different categories, video and blog. The links to the blog entires go to /blog/item/, so the side bar modules are being displayed correctly. But for some reason the video entries are linking to /component/k2/item/, and on that page the modules that are supposed to on the right do not show up at all. The content area takes up the entire width of the site.
What is further confusing about this situation is that i have duplicates of those modules running on certain interior pages, with the same settings, that link to the items correctly. The only reason i have 2 of the same module is because i need that same module to display below the content on index page, and in the side bar on select interior pages.
I do not have a menu item that links to the video category. The main category is Education, and there are 3 sub categories. blog, video, article. There are only menu items for Blog, and for Education. I already have that same module in the some of the interior pages, and it works fine.
what am i doing wrong?
The solution is pretty simple, the explanation is rather complicated. Here is the solution -
Create a new menu, call it hidden links or something. Doesn't matter what is it called, you will not display this menu on the site.
Create a new menu item for the video category.
Assign your modules to that hidden menu item.
If you don't care about what is happening, just know that you can always create hidden menu items to control layout on pages.
If you do care, get a cold drink and get comfortable...
Menu items in Joomla server several different purposes other than providing links for users to get to content. If you are using the core SEF URLs, this is the first place Joomla looks to create those URLs. In general a URL is built like this - joomla install/parent menu item alias/sub menu item alias/content item/article alias.html. Since your video category does not have a corresponding menu item to use for building URLs, it uses the default URL scheme.
The menu item is also the source for the itemID that every page uses. If a particular page does not have a related menu item, it will inherit the itemID from the previous page usually or in the case of k2 items/joomla article it will inherit the itemID from the menu item that links to the parent category of the content. The itemID is used to determine module menu assignment. This is why getting to a particular page that does not have a menu item 2 different ways will often give you pages that look different, different itemIDs were inherited resulting in different modules being displayed.
Since Joomla really counts on the itemID, you should always specify a menu item for any content you are diplaying, even if you do not want to display a link in the menu. By creating a menu that does not appear in a module, you still get the itemID you need for the content, but the menu never appears anywhere. Usually, a link to a category will be enough since child content will pick up that itemID, but in some cases it makes sense to create menu items to specific content items/articles. You would do this any time you want a specific URL for an item. For example, if you wanted to create a URL like your-site.com/special-offer, you could create the content item for the special offer, then make a menu item with the alias special-offer to get the correct URL.
Joomla also uses the menu item for browser titles and page titles. Your question is not related to that so I'll stop here, but as you can tell it is pretty important to know when to create a menu item for your content.

Magento - Link attributes with sub-categories or include attribute value in navigation

I'm creating a video game ecommerce store and I need to have the navigation structured so that the navigation bar contains all the major consoles. When someone hovers over one of the console navigation links, a drop down menu appears with each genre option. For example, once you hover over Xbox 360, a drop down menu with Action, Adventure, etc. will show up.
My first thought is to create sub-categories in each major category that represent each genre. There would also be a custom attribute field for genre. I would then have to manually export the product database and fill it in for each product.
Is there an easier way to do this that I don't know about? Is it possible to have attributes as the drop-down menu links in the navigation bar?
One thing I've noticed in the Manage Attributes section is the option to Use in Layered Navigation. As far as I can tell, this links the attribute in the sidebar and not the main navigation bar.
For reference, my website is at http://allyourga.me
There is no default functionality to do what you are describing. The default Magento way to accomplish this is via subcategories. You are correct about Layered Navigation, that is a sidebar feature inside the catalog.
You could do some custom coding around showing the attributes in the dropdown menu, but the dropdown links lead to categories anyway, so you'd need to create those regardless. Another approach would be a cronjob that created the necessary categories for the products and placed them into those categories on command. You'll need to add a "console" attribute to make this work as well.
Hope that helps!
Thanks,
Joe

Resources