Recent Topics

1 Feb 23, 2011 12:59    

function GetDefaultSettings( & $params ) 
	{
$DefaultSettings = array(
					'setting1' => array(),

      //setting 2 should be available only if setting 1 is true
if  ($this->Settings->get( 'txtr_setting1' ) {

'setting2' => array(),
  )
return $DefaultSettings ;
}

How can you make a plugin/skin setting available depending on some other option ?

2 Feb 28, 2011 02:54

Check out the test plugin. There's a decent example of a setting based on another setting.

3 Feb 28, 2011 04:28

Afwas wrote:

Check out the test plugin. There's a decent example of a setting based on another setting.

thanks, i sure will.
Nice to see you here :D

4 Mar 22, 2011 12:16

You have to use javascript for this. Ministats plugin does it perfectly (widget settings).

This should work too


function GetDefaultSettings( & $params )  
{
    $r[] = array( 'setting1' => array() );

    if( $whatever )
    {
        $r[] = array( 'setting2' => array() );
    }

    return $r;
}


Form is loading...