Sounds great
LOL. You are just never happy, are you? ;-)
-
MODX Staff
- 12,272 Posts
Well, when I can’t play with the code myself I have not other choice. LOL
Great work!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Quote from: infoclipper at Aug 17, 2005, 02:30 PM
Can someone give me a quick parameter string using all the available types? Just want to make sure that my new parameter editor is fully compatible, especially since it allows you to switch parameter types on the fly.
Thanks, someone! 
I guess that someone would be me. Here you go:
&name = Description;datatype;value
where:
name – name of the variable to be used inside theplugin code
description – A brief description of the input variable
datatype – the type of input to accept from the user
value – the values or list to be displayed.
Where data types can be one of the following:
int – An integer. Use a textbox to accept numeric inputs
string – This is the default data type. Uses a textbox to accept input values
list – A list. Use a dropdown menu to display a list of values.
Example of a list input variable:
&color=Colors;list;Red,Blue,Green
For more information please see "The Developer’s Guide"
Thanks, Raymond.
I assume, then, that the first element is always the selected? We don’t store a default index, right?
Great stuff Travis
Another thing that came to mind is the ability for users to be able to edit HTML snippets via an RTE. So when they select Plain HTML they get an option to switch to RTE mode or Text mode.