Sub-menus in GuMaxDD

Use this forum to ask questions about how to do things in GuMax skin.
Post Reply
User avatar
georgesmart1
Rank 1
Rank 1
Posts: 8
Joined: October 16th, 2011, 3:28 pm

Sub-menus in GuMaxDD

Post 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
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Sub-menus in GuMaxDD

Post 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...
User avatar
georgesmart1
Rank 1
Rank 1
Posts: 8
Joined: October 16th, 2011, 3:28 pm

Re: Sub-menus in GuMaxDD

Post 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.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Sub-menus in GuMaxDD

Post by Paul »

The problem is you can not get second level in wiki sidebar page...
User avatar
georgesmart1
Rank 1
Rank 1
Posts: 8
Joined: October 16th, 2011, 3:28 pm

Re: Sub-menus in GuMaxDD

Post 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.
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Sub-menus in GuMaxDD

Post 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?
User avatar
georgesmart1
Rank 1
Rank 1
Posts: 8
Joined: October 16th, 2011, 3:28 pm

Re: Sub-menus in GuMaxDD

Post 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!
User avatar
Paul
Development Team Leader
Development Team Leader
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Sub-menus in GuMaxDD

Post 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.
User avatar
georgesmart1
Rank 1
Rank 1
Posts: 8
Joined: October 16th, 2011, 3:28 pm

Re: Sub-menus in GuMaxDD

Post by georgesmart1 »

Thanks. I'll take a look at that over this weekend. Your help is appreciated!
User avatar
harleyotto
Rank 0
Rank 0
Posts: 1
Joined: March 2nd, 2012, 10:56 pm
Location: New York
Contact:

Re: Sub-menus in GuMaxDD

Post by harleyotto »

i guess the problem is you can not get second level in wiki sidebar page.
Post Reply