James Gifford <[EMAIL PROTECTED]> wrote:

> Hi
> 
> I looked at using parameters but there is no option to predefine the 
> parameter input (like a drop down, radio button, etc) or limit user 
> input options.  Has anyone thought of a good solution to get around this?
> 
> I thought of hacking Aegir so that the Type and Extra input fields were 
> dropdowns hard coded with the options I want to limit people to.
> 

What You do with html form is one issue and what you do with objects
fields or parameters is another issue.
As there are many limitations coming with sorting midgard articles, 
I suggest You to use type for sorting. 

$article->type = 1; // south
$article->type = 2; // north
$article->type = 3; // west 
etc etc 

How You will make html form depends on You (radio, select list etc etc).

Next :

$art = mgd_list_topic_articles($topic,"",$type);

Of course,  You may make some simple function here which "translates" 
$article->type values for "human readable" names.


Piotras


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to