Anyone done a really simple menu?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Ylle
Forum Members
Forum Members
Posts: 18
Joined: Mon Oct 09, 2006 11:42 am

Anyone done a really simple menu?

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Anyone done a really simple menu?

Post 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
Ylle
Forum Members
Forum Members
Posts: 18
Joined: Mon Oct 09, 2006 11:42 am

Re: Anyone done a really simple menu?

Post 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
Last edited by Ylle on Fri Oct 13, 2006 12:02 am, edited 1 time in total.
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Anyone done a really simple menu?

Post by Dee »

Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Anyone done a really simple menu?

Post 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.
Ylle
Forum Members
Forum Members
Posts: 18
Joined: Mon Oct 09, 2006 11:42 am

Re: Anyone done a really simple menu?

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Anyone done a really simple menu?

Post 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.
Ylle
Forum Members
Forum Members
Posts: 18
Joined: Mon Oct 09, 2006 11:42 am

Re: Anyone done a really simple menu?

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Anyone done a really simple menu?

Post by Dr.CSS »

You can code each template with items="ParentA,childb,childc,etc," or whatever combo you want...
Post Reply

Return to “Layout and Design (CSS & HTML)”