Jump to content


Photo

remove dropdown menu in Mollio Type-C template


  • Please log in to reply
13 replies to this topic

#1 navnak

navnak

    Etomite Forum Newbie

  • Member
  • 15 posts

Posted 17 July 2006 - 10:06 AM

Hi there,
I've searched the forum to find the answer for my question but did not find it. So here's my question.

I am using the Mollio TypeC template in a project. It is working fine but the only thing i don't wanne have is the dropdown menu in the horizontal menu. I only wanna use the sidemenu for this project. Is it possible to remove this dropdown menu? And can anybody tell me how to do this?

Second question: is it possible to align the whole template to the center, like this site: NavNak Design? How can i do this?

I appreciate your help.

Thank you
Roy

#2 lloyd_borrett

lloyd_borrett

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 607 posts

Posted 17 July 2006 - 12:56 PM

G'day Roy,

Well to remove the main menu horizontal drop down menu from your pages, try removing the line:
[!MollioMainMenu!]
from your template.

The Mollio templates aren't designed to be centred. They are designed to use the page width available.

I guess there would be nothing to stop you imposing your own centred design onto the template by making the appropriate mods to the CSS files and the template.

Best Regards, Lloyd Borrett.

Edited by lloyd_borrett, 17 July 2006 - 12:57 PM.


#3 navnak

navnak

    Etomite Forum Newbie

  • Member
  • 15 posts

Posted 17 July 2006 - 03:43 PM

G'day Roy,

Well to remove the main menu horizontal drop down menu from your pages, try removing the line:

[!MollioMainMenu!]
from your template.

The Mollio templates aren't designed to be centred. They are designed to use the page width available.

I guess there would be nothing to stop you imposing your own centred design onto the template by making the appropriate mods to the CSS files and the template.

Best Regards, Lloyd Borrett.


Hi Lloyd,

Thank you for your quick reply.
I removed the code you discribed in the template but that was not what I meant. The Whole menu dissapeared. The only things i wanna remove are the sublinks which appear when you hover over the main items. The drop down menu.

I solved the "problem" with a little workaround. I removed the style:

#nav li:hover ul, #nav li.sfhover ul {
	left: 0;
	z-index:99999;
	}

The mainmolliomenu still exists in the template but without de dropdown.

I am sorry to hear that it is not possible to center the Mollio template. But there must be also a CSS mod for this.

Thank you
Roy

#4 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 17 July 2006 - 03:52 PM

The only things i wanna remove are the sublinks which appear when you hover over the main items. The drop down menu.

Try using [[MollioSecondaryMenu?MSM_levels=1]]...

#5 navnak

navnak

    Etomite Forum Newbie

  • Member
  • 15 posts

Posted 17 July 2006 - 04:14 PM

Try using [[MollioSecondaryMenu?MSM_levels=1]]...


I allready did that also, but with the same result.

#6 vw53a

vw53a

    Likes Etomite Forums!

  • Member
  • PipPip
  • 393 posts

Posted 17 July 2006 - 06:06 PM

I allready did that also, but with the same result.

Yes, that would be for the menu on the left side, I guess.

Navnak, do you want to generate the top horizontal menu bar dynamically?
If not, you could hard-code it into your template.

Otherwise I guess the following should work, but I haven't tried it though:
Instead of [ ! MollioMainMenu ! ] use: [ ! MollioMainMenu?MMM_levels=1 ! ] (without the spaces)

If it works, you could make this default by going to the manager>manage resources>manage snippets and pick MollioMainMenu.
In this snippet you'll find:
// $maxLevels [ int ]
   // Maximum number of levels to include. The default 2 is the number
   // of levels supported by the CSS styles.
   // A value of 0 will allow all levels.
   // Also settable with snippet variable MMM_levels:
   // [[MollioMainMenu?MMM_levels=2]]
   $maxLevels = 2;
and change this last line to $maxLevels = 1;

#7 navnak

navnak

    Etomite Forum Newbie

  • Member
  • 15 posts

Posted 17 July 2006 - 07:09 PM

Yes, that would be for the menu on the left side, I guess.

Navnak, do you want to generate the top horizontal menu bar dynamically?
If not, you could hard-code it into your template.

Otherwise I guess the following should work, but I haven't tried it though:
Instead of [ ! MollioMainMenu ! ] use: [ ! MollioMainMenu?MMM_levels=1 ! ] (without the spaces)

If it works, you could make this default by going to the manager>manage resources>manage snippets and pick MollioMainMenu.
In this snippet you'll find:

// $maxLevels [ int ]
   // Maximum number of levels to include. The default 2 is the number
   // of levels supported by the CSS styles.
   // A value of 0 will allow all levels.
   // Also settable with snippet variable MMM_levels:
   // [[MollioMainMenu?MMM_levels=2]]
   $maxLevels = 2;
and change this last line to $maxLevels = 1;


No the top horizontal menu is dynamically generated. I will try this and will let you know. For now I 'am happy with the removal of the style, you can see in the above discussion. Right now i am trying to put the whole site in the center of the screen included with the Mollio Template typeC.

Thank you
Roy

#8 vw53a

vw53a

    Likes Etomite Forums!

  • Member
  • PipPip
  • 393 posts

Posted 17 July 2006 - 07:29 PM

Maybe you can compare the type-C with the main homepage of mollio. The last uses a lot of style elements which you'll find in type A-F also, but the main homepage is centered!!

#9 Chris Fancy

Chris Fancy

    Etomite Forum Fan

  • Member
  • Pip
  • 115 posts

Posted 17 July 2006 - 09:20 PM

Hi there,
I've searched the forum to find the answer for my question but did not find it. So here's my question.

I am using the Mollio TypeC template in a project. It is working fine but the only thing i don't wanne have is the dropdown menu in the horizontal menu. I only wanna use the sidemenu for this project. Is it possible to remove this dropdown menu? And can anybody tell me how to do this?

Second question: is it possible to align the whole template to the center, like this site: NavNak Design? How can i do this?

I appreciate your help.

Thank you
Roy


Navnak,

It's possible to fix the width by replaceing this line:

#wrap {min-width:770px;max-width:1200px;margin: 0 auto;position:relative}

...with this line:

#wrap {width:900px;margin: 0 auto;position:relative}

under this heading, in your main.css file
/* LAYOUT - main body of page */

You can play with the 900 width to get the width you need...

hope this helps.. ;)

Regards,

#10 navnak

navnak

    Etomite Forum Newbie

  • Member
  • 15 posts

Posted 18 July 2006 - 03:12 PM

Navnak,

It's possible to fix the width by replaceing this line:

#wrap {min-width:770px;max-width:1200px;margin: 0 auto;position:relative}

...with this line:

#wrap {width:900px;margin: 0 auto;position:relative}

under this heading, in your main.css file
/* LAYOUT - main body of page */

You can play with the 900 width to get the width you need...

hope this helps.. ;)

Regards,


The above code is exactly the same code i used in the main.css file, except that the width is 870px. It is very important for me to find a solution for the "center" problem. I am also start a little research for the mollio home page (thanks vw53a), because that page is centered. and that is exactly what i want with my project.

The second concern is that my client suddenly wants a multi language site (dutch/english/german). Is there a simple way to get this done?

Anyway, thanks for your help everybody.

#11 Jelmer

Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 18 July 2006 - 04:02 PM

The second concern is that my client suddenly wants a multi language site (dutch/english/german). Is there a simple way to get this done?


Please don't mix issues up. And better not start a new topic on this one, because there's dozens of discussions on this topic.

#12 Ralph

Ralph

    Loves Etomite Forums!

  • Admin
  • 6,539 posts

Posted 18 July 2006 - 05:46 PM

You can learn more than you ever wanted to about centering by Googling css centering... I have tested several of the better known methods but will leave it up to you to determine which one will best suit your needs... You, as the developer, are the only person who can best make such a choice after reading the how and why of each different method... :eto:

#13 navnak

navnak

    Etomite Forum Newbie

  • Member
  • 15 posts

Posted 19 July 2006 - 06:39 AM

I am sorry for you guys when i mixes different issues. i will search the forums for the language issue. Maybe you Jelmer can tell me where to start. thanks

Thanks Ralph. I will do that.

Roy

#14 Jelmer

Jelmer

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,173 posts

Posted 19 July 2006 - 06:54 AM

http://www.google.nl/search?hl=nl&q=mu...e.org&meta=




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users