[pmwiki-devel] customised input with $InputTags
Patrick R. Michaud
pmichaud at pobox.com
Fri Dec 15 15:35:13 CST 2006
On Fri, Dec 15, 2006 at 07:04:00PM +0000, Hans wrote:
> Friday, December 15, 2006, 3:32:57 PM, Patrick wrote:
> >> $InputTags['text'][':html'] = "<input type='text' \$InputFormArgs
> >> onfocus=\"prevalue=this.value; this.value=''\"
> >> onblur=\"this.value=prevalue\" />";
> >> Now if I put this into config.php it will apply to all textline input
> >> boxes. But I rather restrict it only to some and not to others.
> >> How can I do that? Create two types of input text forms?
> > Yes, since they are actually different.
> And how is this done? I suppose I can't just define
> $InputTags['text2'][':html'] = ....
> since text is a keyword for the type of input.
$InputTags['text2'][':html'] = "<input type='text' \$InputFormArgs
causes (:input text2 ... :) to generate the corresponding HTML output,
replacing $InputFormArgs with any arguments.
More information about the pmwiki-devel