Page 1 of 1

Sub-menus in GuMaxDD

Posted: October 16th, 2011, 4:15 pm
by georgesmart1
Hi. I would firstly like to say thank you for a great skin for MediaWiki. I use the skin for my personal website and have a question about the navigation structure of the menus. Essentially, can I have sub menus? What I would really like is to be able to add another layer to the menus on my page and wondered if it was possible? So that it looked something like the following:

Image

Notice the Triangles that indicate items with sub-menus? The above is a mock image.

I am wondering if there is a way to do this?

Any help would be greatly appreciated!

George Smart, M1GEO

Re: Sub-menus in GuMaxDD

Posted: October 16th, 2011, 11:45 pm
by Paul
Well, the skin and script in GuMaxDD already has this ability, however the mediawiki menu page doesn't support that extra level sub menu. All menus in wiki are one level...

Re: Sub-menus in GuMaxDD

Posted: October 17th, 2011, 6:42 am
by georgesmart1
Is it then possible to use the implementation already in your code? I only use your GuMaxDD skin, and this feature (although non standard) would greatly improve the navigation of my website.

If it is possible, could you explain how I am to go about it? I'm a technical person in terms of programming but with no real experience of CSS/Web Design.

Thanks in adavnce, Paul. Great work! Keep it up!
George.

Re: Sub-menus in GuMaxDD

Posted: October 17th, 2011, 6:59 pm
by Paul
The problem is you can not get second level in wiki sidebar page...

Re: Sub-menus in GuMaxDD

Posted: October 18th, 2011, 6:28 am
by georgesmart1
I understand this. Is there a way to avoid it? Could you not just add a second level parser into your code? I know the default MediaWiki engine doesn't support it, but I can't see it being too hard to modify the code to work (I have good programming experience, but thought I'd ask about this before hacking about with the code).

* FirstLevel|FirstLevel
** SecondLevel|SecondLevel
*** ThirdLevel|ThirdLevel

The other option I was toying with is the use of catagories. Something similar to this:

* Category:FirstLevel|FirstLevel

So clicking on the first level takes you to the category page, and then pages within the category are listed in the submenu?

Just some ideas? I'm not sure if there is a simple 'hack' to make it work?
Thanks for your replies :)

George.

Re: Sub-menus in GuMaxDD

Posted: October 18th, 2011, 10:43 pm
by Paul
I guess you can hack it by adding code to read extra level of menu, but I think you might need to hack into wiki system to do that which will be complex and headache when you upgrade the wiki.

The skin and script already support multiple level menu, it's just not simple to do in wiki sidebar.

Another way is using extension to read another wiki page like sidebar page, then you can custom menu there.

There are ways to do it, but if it's worthy or not?

Re: Sub-menus in GuMaxDD

Posted: October 19th, 2011, 6:57 am
by georgesmart1
Sure. I understand. Maybe I need to go down the route of making my own Sidebar equivalent and making sub-menus from that. If you can offer any advice regarding this, it would be greatly appreciated. Thank you!

Re: Sub-menus in GuMaxDD

Posted: October 19th, 2011, 9:45 pm
by Paul
You can read the existing code and it's not hard to add another level of menu in GuMaxDD.php, then you can focus how to get it.

Re: Sub-menus in GuMaxDD

Posted: October 20th, 2011, 6:07 am
by georgesmart1
Thanks. I'll take a look at that over this weekend. Your help is appreciated!

Re: Sub-menus in GuMaxDD

Posted: March 3rd, 2012, 2:02 am
by harleyotto
i guess the problem is you can not get second level in wiki sidebar page.