Page 1 of 1

MODx Command Dropdown

Posted: Wed Jun 13, 2012 3:20 pm
by Jessica
How would I get this? (see image)

Image

Re: MODx Command Dropdown

Posted: Thu Jun 14, 2012 12:43 am
by Jessica
bump

Re: MODx Command Dropdown

Posted: Thu Jun 14, 2012 5:50 am
by femu
Do you mean a dropdown box?

Re: MODx Command Dropdown

Posted: Thu Jun 14, 2012 1:56 pm
by Jessica
yeah.

Re: MODx Command Dropdown

Posted: Thu Jun 14, 2012 4:30 pm
by FloridaMan339
TRY THIS:
Before </head> in overall_header.html:

Code: Select all

<!-- Dropdown Box Start -->
<script>
<!--
function land(ref, target)
{
lowtarget=target.toLowerCase();
if (lowtarget=="_self") {window.location=loc;}
else {if (lowtarget=="_top") {top.location=loc;}
else {if (lowtarget=="_blank") {window.open(loc);}
else {if (lowtarget=="_parent") {parent.location=loc;}
else {parent.frames[target].location=loc;};
}}}
}
function jump(menu)
{
ref=menu.choice.options[menu.choice.selectedIndex].value;
splitc=ref.lastIndexOf("*");
target="";
if (splitc!=-1)
{loc=ref.substring(0,splitc);
target=ref.substring(splitc+1,1000);}
else {loc=ref; target="_self";};
if (ref != "") {land(loc,target);}
}
//-->
</script>
<!-- Dropdown Box End -->
IN BODY of file where you want the box to appear:

Code: Select all

<!-- Dropdown Box Choices Start -->
<form action="dummy" method="post"><select name="choice" size="1" onChange="jump(this.form)">
<option value="http://www.stephenwilliams.me.uk/socialcircles/">Social Circles</option>
<option value="http://www.christiansocialnet.org/">ChristianSocialNet</option>
<option value="http://socialnetwork.phpbb3hacks.com/">phpBB Social Network</option>
<option value="http://www.phpbb.com/">phpBB</option>
<option value="http://www.google.com/">Google</option></select></form>
<!-- Dropdown Box Choices End -->
Demo:
http://silvermoon.comoj.com/index.php

Re: MODx Command Dropdown

Posted: Thu Jun 14, 2012 7:54 pm
by Jessica
oh wait no...sorry I wasn't clear but I meant that I wanted the MODx dropdown, which has Find, Add after, etc, and you can put them in your post....

Re: MODx Command Dropdown

Posted: Fri Jun 15, 2012 3:30 pm
by 4_seven

Re: MODx Command Dropdown

Posted: Sat Jun 16, 2012 1:52 pm
by trigger_error
Thanks for that. Works a treat :lol:

Re: MODx Command Dropdown

Posted: Sat Jun 16, 2012 1:55 pm
by Jessica