Page 1 of 1

Menu

Posted: Fri Nov 18, 2005 1:54 pm
by fadum
How could i put in a simple <a href menu, no bullets etc, just one href after another?

oh, and im sure its possible in pimenu, but without english instructions its useless to me.

thanks

Re: Menu

Posted: Fri Nov 18, 2005 2:31 pm
by westis
Hi fadum,

Do you want links below each other? Or beside each other? You can still use bulletmenu, but through the stylesheet select not to display the bullets (list-style: none for the li items).

All the three default menus that will be included with the CMSMS 0.11 (bulletmenu, CSSMenu and EllNav) use unordered lists to build the menus. You can see examples at http://svntest.cmsmadesimple.org

Re: Menu

Posted: Fri Nov 18, 2005 2:35 pm
by fadum
just need a link then a link link etc, cant have

no problem ill hack a menu

Cheers

Re: Menu

Posted: Fri Nov 18, 2005 2:37 pm
by westis
fadum wrote: just need a link then a link link etc, cant have

no problem ill hack a menu

Cheers
Why can't you have ?

Re: Menu

Posted: Fri Nov 18, 2005 4:47 pm
by Piratos
oh, and im sure its possible in pimenu, but without english instructions its useless to me.
Use the translator service of google , altavista or so.

This is a simple template call it simple.tpl and place it in tmp/templates.

{foreach from=$rawmenu item=entry}
{if $entry->type neq 'separator'}
url}"{$entry->menutext}

{else}

{/if}
{/foreach}


to use it

{pimenu template="simple.tpl"} 

Re: Menu

Posted: Fri Nov 18, 2005 9:38 pm
by fadum
Patricia wrote: of course you can have , but as westis mentioned, do not forget to have "list-style: none"  in your css for the li definition

then : no bullets :)

I understand that, just not very tidy.
Use the translator service of google , altavista or so.

This is a simple template call it simple.tpl and place it in tmp/templates.

{foreach from=$rawmenu item=entry}
{if $entry->type neq 'separator'}
url}"{$entry->menutext}

{else}

{/if}
{/foreach}


to use it

{pimenu template="simple.tpl"} 
will give it a go,

Thanks

Re: Menu

Posted: Sat Nov 19, 2005 12:40 pm
by fadum
Thanks Piratos, works just fine

Re: Menu

Posted: Sat Dec 03, 2005 9:23 am
by kazuki
Doesn't work for me :( I get a blank page.

Re: Menu

Posted: Sat Dec 03, 2005 10:12 am
by fadum
kazuki wrote: Doesn't work for me :( I get a blank page.
Typo, change this

Code: Select all

<a href="{$entry->url}"{$entry->menutext}</a><br />
to this

Code: Select all

<a href="{$entry->url}">{$entry->menutext}</a><br />
That should help