Page 2 of 2

Re: Jump Menu

Posted: Fri Oct 28, 2005 7:04 pm
by Svenni
Piratos wrote: With Pimenu it was easy 5 Minutes.
Wirklich sehr schön und v. a. übersichtlich. Doch kann ich dort bei start_element angeben, was ich will, es wird immer der komplette Menübaum gezeigt ...? Wie löst man das mit pimenu? Und kann man auch irgendwie das Problem lösen, das nur die aktuelle Elementebene angezeigt wird?

(In english: I can give as start_element what I want, the pimenu-script shows the complete menustructure all times.)

Re: Jump Menu

Posted: Sat Oct 29, 2005 9:04 am
by Piratos
Das löst man durch simple Abfragen im Template

Beispiel - du willst nur bestimmte bereiche haben:

Code: Select all

<div>
<form>
<select name="pulldown" onChange="jumpBox(this.form.elements[0])">
<option>---Please select---</option>
{foreach from=$rawmenu item=entry}
{if $entry->hierarchy >='00002.00001.00002.00001' and  $entry->hierarchy <= '00002.00001.00002.00003'}
{if $entry->type eq 'separator'}
<option>------</option>
{else}
<option value="{$entry->url}">{$entry->menutext}</option>
{/if}
{/if}
{/foreach}
</select>
</form></div>

Das war's schon - du kannst damit also alles machen , auch asynchron, wenn z.B. in der o.a. Folge einzelne Einträge oder ein weitere Bereich angezeigt werden soll.

Pimenu gibt es ab heute 15.oo in der Version 1.5 - ich würde warten und dann das Teil einsetzen.

Es ist damit auch ohne Nutzung des statischen Menüs das jemals schnellste hier gezeigte Menü überhaupt:

Generated in 1.800248 seconds by CMS Made Simple 0.11-beta4 (not cached) using 10 SQL queries

UND  DAS BEI ÜBER 5000 INHALTEN !!!!

Re: Jump Menu

Posted: Sat Oct 29, 2005 8:56 pm
by alby
Inglese prego!

english: English please...

Al

Re: Jump Menu

Posted: Sun Oct 30, 2005 10:44 pm
by iNSiPiD
Couldn't you just add add onchange="submit();" to the select tag?

Re: Jump Menu

Posted: Mon Oct 31, 2005 8:17 am
by Piratos
With pimenu you can write in the tempate what you want or need.

Re: Jump Menu

Posted: Tue Nov 15, 2005 9:31 am
by Alex_Leipzig
Piratos wrote: Das löst man durch simple Abfragen im Template
[...]
Das war's schon - du kannst damit also alles machen , auch asynchron, wenn z.B. in der o.a. Folge einzelne Einträge oder ein weitere Bereich angezeigt werden soll.
How can I modify the depth of the menu, i.e. how many levels are displayed. Is there a way to css-style or indent the menu?

Re: Jump Menu

Posted: Tue Nov 15, 2005 9:55 am
by westis
alex wrote:
Piratos wrote: Das löst man durch simple Abfragen im Template
[...]
Das war's schon - du kannst damit also alles machen , auch asynchron, wenn z.B. in der o.a. Folge einzelne Einträge oder ein weitere Bereich angezeigt werden soll.
Wie kann ich festlegen, wieviele Ebenen tief das Menü angezeigt wird?
Please use English only in the English part of the forum, so that the rest of us also can follow the discussion. For discussions in German there is a German forum.

:-)

Re: Jump Menu

Posted: Tue Sep 04, 2007 11:48 pm
by streever
Hello all,

Please please please can someone point me to this code? it is exactly what I need. I see it's been deleted.

I have no server access to the site--only access through CMSMadeSimple--and can not find PIMenu in the Module Manager, so I can't install it.

Woe is me.

Can someone help me by showing me this code, so I can use this instead?

Re: Jump Menu

Posted: Wed Sep 05, 2007 6:46 am
by cyberman
Upps, this is a very old thread 8).
streever wrote: Can someone help me by showing me this code, so I can use this instead?
It's not difficult to transform it for MenuManager ;).

1. Add this to your template head

Code: Select all

{literal}
<__script__ type="text/JavaScript" languange="javascript">
function jumpBox(list) {
  location.href = list.options[list.selectedIndex].value
}
</__script>
{/literal}
2. Use this MenuManager template

Code: Select all

<form>
<select name="pulldown" onChange="jumpBox(this.form.elements[0])">
<option>---Please select---</option>
{foreach from=$nodelist item=node}
{if $node->type eq 'separator'}
<option>------</option>
{else}
<option value="{$node->url}">{$node->menutext}</option>
{/if}
{/foreach}
</select>
</form>
3. Have fun ...

Re: Jump Menu

Posted: Wed Sep 05, 2007 6:52 am
by cyberman