Is it possible-secondary menu displays only child

Is it possible-secondary menu displays only child was created by wonderland

Posted 11 years 10 months ago #4100
Hello,

I must say that this mod is just wonderful and almost fits my needs almost perfectly, there is just one problem and I'm not sure is this possible to do or not.

I have a 3 level main menu but only 2 levels will be visible at all times

Main Main structure:
Top category
- - subactegory 1
- - subcategory 2
- - subcategory 3
- - - sub sub category (this level inst't visible)
- - - sub sub category2 (this level inst't visible)
- - - sub sub category3 (this level inst't visible)

I'm using Maxi Menu CK to display my secondary menu and I have enabled option "Sub items dependant" and start from LVL 2

But when I'm in Top category Secondary menu (maxi menu ck) displays:
subcategory1
subcategory2
subcategory3
sub sub category 1
sub sub category 2
sub sub category 3

What I would liek to achieve:

1.I would like for sub sub category not to be displayed (this I actually understand how to do)

2. When pressing on subcategory 3 on secondary menu (Maxi menu ck) only these categories would show:
sub sub category 1
sub sub category 2
sub sub category 3

Basically I want for secondary menu to always display menu child categories. And if menu has no child categories it displays it's LVL categories.

I can think of one solution how to do this, by creating modules for each page level and choose to display module on said pages, but that would be a lot of modules, plus If would create a new menu categories I would need to go and add new pages for modules.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: Is it possible-secondary menu displays only child

Posted 11 years 10 months ago #4101
Hi
playing with the subcategories items like you want is not an eays job. Not easy to develop or to configure.
You must try to play with the actual options
Ced

Joomlack Webmaster and Developer

by ced1870
The following user(s) said Thank You: wonderland

Please Log in or Create an account to join the conversation.

Replied by wonderland on topic Re: Is it possible-secondary menu displays only child

Posted 11 years 10 months ago #4102
Thank you for replying.

I decided that I will use 2 modules one for 2nd lvl categories and one for 3rd lvl categories, then I will just choose on which pages to display 2nd lvl categories and 3rd lvl categories.


This is working. However I noticed that when I go to 3rd lvl using maxi Menu CK, I get this error:

"Notice: Undefined offset: 1 in /public_html/modules/mod_maximenuck/helper.php on line 59 Notice: Undefined offset: 1 in /public_html/modules/mod_maximenuck/helper.php on line 59
Notice: Undefined offset: 1 in /public_html/modules/mod_maximenuck/helper.php on line 59 Notice: Undefined offset: 1 in /public_html/modules/mod_maximenuck/helper.php on line 59
Notice: Undefined offset: 1 in /public_html/modules/mod_maximenuck/helper.php on line 59
Notice: Undefined offset: 1 in /public_html/modules/mod_maximenuck/helper.php on line 59 Notice: Undefined offset: 1 in /public_html/modules/mod_maximenuck/helper.php on line 59 "

If I turn off error reporting this disappers, but why did this error appear ?

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Re: Is it possible-secondary menu displays only child

Posted 11 years 10 months ago #4103
I will check this, but this is just a Notice, don't be afraid it will not affect your system :)
Ced

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by wonderland on topic Re: Is it possible-secondary menu displays only child

Posted 11 years 10 months ago #4104
Thanks!

If it doesn't effect anything, don't bother, I'll just turn of error reporting ! :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.673 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 863 guests and no members online