Forum OpenACS Development: Re: clear filters

Collapse
2: Re: clear filters (response to 1)
Posted by Claudio Pasolini on
Hi Iuri,

this is not a problem and is well documented: see template::list::filter::create.

If you set a default value for the filter, this can't be cleared, else the 'clear' link is provided.

Collapse
3: Re: clear filters (response to 2)
Posted by Iuri Sampaio on
iuri you're a lazy bastard

has_default_p: If set to 1, it means that this filter has a default value, and thus cannot be cleared. If not set, the list builder will automatically provide a link to clear the currently selected value of this filter. You only need to set this if you specify a default value in your page's ad_page_contract, instead of through the 'default_value' property below.

thanks claudio