Jump Menu

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Svenni

Re: Jump Menu

Post 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.)
Piratos

Re: Jump Menu

Post 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 !!!!
alby

Re: Jump Menu

Post by alby »

Inglese prego!

english: English please...

Al
iNSiPiD

Re: Jump Menu

Post by iNSiPiD »

Couldn't you just add add onchange="submit();" to the select tag?
Piratos

Re: Jump Menu

Post by Piratos »

With pimenu you can write in the tempate what you want or need.
Alex_Leipzig

Re: Jump Menu

Post 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?
Last edited by Alex_Leipzig on Tue Nov 15, 2005 10:02 am, edited 1 time in total.
westis

Re: Jump Menu

Post 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.

:-)
streever

Re: Jump Menu

Post 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?
cyberman

Re: Jump Menu

Post 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 ...
Last edited by cyberman on Thu Jun 05, 2008 6:07 am, edited 1 time in total.
cyberman

Re: Jump Menu

Post by cyberman »

Post Reply

Return to “Modules/Add-Ons”