Re: "disabled" tags ?

[email protected] (Rainer Müller)
Newsgroups php.smarty.dev
Message-ID <[email protected]>
Attila Csipa wrote:
> It seems that smarty plugins generally do not support really well the 
> 'disabled' tag. For example, on SELECT statements this can be remedied by 
> manually defining the <SELECT> tag, but having the disabled attribute for 
> others, like the select_date and select_time plugins is more than tricky 
> without modifying the plugins themselves. Is there any opinion on this ? I 
> made some quick patches for my needs that add this functionality but I'm not 
> sure of any 'official' standpoint from other smarty developers to the 
> usefulness of this - if needed, these could be applied to CVS.

You can use the following code:

{html_select_date all_extra="disabled=\"disabled\""}

This applies to all three select boxes then.

HTH, Rainer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.