Page 1 of 1

Menus for newbies?

Posted: Mon Aug 28, 2006 3:26 pm
by iggy23
Sorry about this, you've probably got better things to do with your time. But could someone help me a second?

I'm using the latest CMCMS. Setup OK, and I understand how to change templates, add things etc. However I'm having trouble when it comes to designing my own template. Or rather, I have designed my own template (html+css) but I'm having trouble when It comes to converting it into CMSMS.

Everything has imported, layout, images, all looks fine. But no matter what I try, I can't get my menu to work. Instead of being a horizontal menu, all I get is a list (down the screen). Its really annoying. I've tried modifying the css by copy/pasting from various examples on this forum, but nothing is working for me. I'm getting close to pulling out my hair! (whats left of it  ;) )

So, has anyone written a "how to write menus from scratch" for CMSMS? If I can understand how their written, maybe I can work out why mine doesn't work.

Thanks everyone.

Re: Menus for newbies?

Posted: Mon Aug 28, 2006 3:35 pm
by Dr.CSS
Which menu template are you using, most come with a corresponding CSS file to style that list running down your site.

Some need the div to be id'ed as in

Use the view source in your browser you may find the UL LI id also as in these are the things the CSS looks for to style said menu.

Re: Menus for newbies?

Posted: Mon Aug 28, 2006 4:20 pm
by iggy23
Hi Mark, thanks for replying.

Here's what I'm getting:

Image

I've put a link to ellnav-horiz in my template, put css into my stylesheet, tried different css, tried a different menu template. Nothing is working... which means I'm making a REALLY basic newbie mistake somewhere. If I view source in the browser, all I'm getting is a UL, not a menu div. (sorry I can't post a link, I'm running it on XAMPP on my PC)

What I need to do is strip the menus out, strip the css out, and try to do it from scratch, because all this copy/pasting is confusing me.

Cheers

Re: Menus for newbies?

Posted: Tue Aug 29, 2006 5:39 am
by websuperman
Does anyone have a menumanager replacement for the elnav horiz with the sub menu in the right column?  I am trying to figure it out on my own but some assitance or not having to re create the wheel would be great.  I hope to have the same affect with greater control via css.  Or at least what the elnav provided in previous versions.. I could probably figure out the improvements more easily from there.

Re: Menus for newbies?

Posted: Tue Aug 29, 2006 6:32 am
by cyberman
@iggy23

You should try to transform the (working) CMSms default templates to your needs. Or take a default template with attached css and study how it works.

Another option could be to post your template / css here  ;)

@websuperman

Have you make a look to the default template named EllNav Horiz/Vert R 1col?

Re: Menus for newbies?

Posted: Wed Aug 30, 2006 12:13 am
by websuperman
I noticed that the stylesheet you mentioned still exists and attached it to my template.  I tried using the ellnav-horiz.tpl with menu manager but I can't seem to get the top menu from displaying subcategories.  Having horizontal=1 toponly=1 in the tags doesn't seem to have any affect as it did in previous versions.  I feel like I am missing something obvious to those familiar with the new menu system but I just can't put my finger on it.  I appreciate any suggestions that may help me to find the solution.

Re: Menus for newbies?

Posted: Wed Aug 30, 2006 12:42 am
by websuperman
I read over the help file again and I have now seen the light.  It helps to include commands that the module can understand... So I am using elnav-horiz for the top horizontal menu and elnav-vert for the submenu. Including in the horizontal tag number_of_levels="1" and in the vertical tag start_level="2" produces the desired result.