Page 1 of 1

Anyone done a really simple menu?

Posted: Thu Oct 12, 2006 6:45 pm
by Ylle
I need a really simple menu -- basically just a text without graphic effect, either horisontal or vertical, with a look like breadcrumbs. If possible, I would also like to get rid of the ID numbers of the pages (13.3, etc.).

Anyone got any tips or ideas?

/Ylle

Re: Anyone done a really simple menu?

Posted: Thu Oct 12, 2006 7:46 pm
by Dee
Ylle wrote: Anyone got any tips or ideas?
Explore the default menu's included in CMS Made Simple.
Take a look at the Module Manager help and the default Navigation stylesheets.

See also http://wiki.cmsmadesimple.org/index.php ... nu_Manager

Re: Anyone done a really simple menu?

Posted: Fri Oct 13, 2006 12:00 am
by Ylle
OK, I think I got it right as far as font and simplicity goes. I'm using the minimal_menu.tpl and the same CSS as for the rest of the design. But how do I get rid of the list display:

Code: Select all

· Tiger (parent)
    · Beteende (child)
    · Föda (child)
    · Systematik (child)
    · Våra djur (child)
When I really want it to just look like:

Code: Select all

Tiger · Beteende · Föda · Systematik · Våra djur
Or possibly:

Code: Select all

Tiger
Beteende
Föda
Systematik
Våra djur


Any ideas?

Oh, one more thing, is it possible to have the menu display the current page only, with children, but without displaying the siblings on the same level? I mean without using the page alias, but rather just hooking up on the current side -- i.e. I want all the pages on the same level to show current page and children but not the siblings. I couldn't find any parameter for that -- is there one?

Best regards,
Ylle

Re: Anyone done a really simple menu?

Posted: Fri Oct 13, 2006 12:04 am
by Dee

Re: Anyone done a really simple menu?

Posted: Fri Oct 13, 2006 12:38 am
by Dee
Actually, previous links are for basic list styling. As menu's are nested lists this one is probably more appropriate:
http://css.maxdesign.com.au/listamatic2/

Also check: http://www.w3schools.com/css/css_list.asp
To get rid of the bullet use list-style-type: none; on the list
Set margin-left: 0; on the listitems to prevent indenting
Set display: inline; on the listitems to place them horizontally

I think for the menu you can return the current page from a UDT and use it as start_page or start_element parameter for the {menu} call in your template.

Re: Anyone done a really simple menu?

Posted: Fri Oct 13, 2006 12:44 am
by Ylle
Dee wrote: I think for the menu you can return the current page from a UDT and use it as start_page or start_element parameter for the {menu} call in your template.
I'm afraid you lost me there, could you elaborate a bit on this one?

Re: Anyone done a really simple menu?

Posted: Sat Oct 14, 2006 6:10 am
by Dr.CSS
If you go to Extensions » Modules and click the word Help, in newer ver. the name of the module will clik to help, here you will see the parameters that the menu tag takes...

{menu show_root_siblings="1"}

(optional) show_root_siblings="1" - This option only becomes useful if start_element or start_page are used. It basically will display the siblings along side of the selected start_page/element.

Re: Anyone done a really simple menu?

Posted: Sat Oct 14, 2006 8:03 am
by Ylle
mark wrote: If you go to Extensions » Modules and click the word Help, in newer ver. the name of the module will clik to help, here you will see the parameters that the menu tag takes...

{menu show_root_siblings="1"}

(optional) show_root_siblings="1" - This option only becomes useful if start_element or start_page are used. It basically will display the siblings along side of the selected start_page/element.
Hi Mark, and thanks!

But been there, done that...  :-\

What I want is a general template menu that shows:

--------------------------------------------
ON PAGE A - template "parent"
--------------------------------------------

Menu (showing only children to A):

- child a
- child b
- child c
(etc.)

----------------------------------------------------------------------
ON PAGE B (sibling to page A) - template "parent"
----------------------------------------------------------------------

Menu (showing only children to B):

- child a
- child b
- child c
(etc.)

---------------------------------------------------------
ON PAGE a (child to A) - template "child"
---------------------------------------------------------

Menu (sowing only A and children to A):

Parent A
- child b
- child c
(etc.)

---------------------------------------------------------
ON PAGE a (child to B) - template "child"
---------------------------------------------------------

Menu (sowing only B and children to B):

Parent B
- child b
- child c
(etc.)


I can't find any parameters that makes that work. Are there any?

/Ylle

Re: Anyone done a really simple menu?

Posted: Sat Oct 21, 2006 12:29 pm
by Dr.CSS
You can code each template with items="ParentA,childb,childc,etc," or whatever combo you want...