Recent Topics

Support Nested dynamic fields

Started by on Nov 27, 2017 – Contents updated: Dec 12, 2017

Nov 27, 2017 13:10    

Nov 27, 2017 13:30

	
	function GetDefaultSettings( & $params )
	{
		global $app_version;
		
		$type = version_compare( $app_version, '6.6.5', '>' ) ? 'array:array:string' : 'array';
		return array(
			'plugin_sets' => array(
				'label' => T_('Level 1'),
				'note' => T_(''),
				'type' => $type,
				'entries' => array(
		
						'a_color' => array(
									'label' => T_('Color'),
									//'note' => T_('E-g: #444444 for light-black'),
									'defaultvalue' => '#fed136',
									'type' => 'color',
								),
		
						'plugin_sets_2' => array(
							'label' => T_('Level 2'),
							'note' => T_(''),
							'type' => $type,
							'entries' => array(

										'color' => array(
												'label' => T_('B Color'),
												//'note' => T_('E-g: #444444 for light-black'),
												'defaultvalue' => '#fed136',
												'type' => 'color',
											),

										'text' => array(
												'label' => T_('B Text'),
												//'note' => T_('E-g: #444444 for light-black'),
												'defaultvalue' => 'Foo Bar',
												'type' => 'text',
											),

											'plugin_sets_3' => array(
																'label' => T_('Level 3'),
																'note' => T_(''),
																'type' => $type,
																'entries' => array(

																'color' => array(
																			'label' => T_('Color'),
																			//'note' => T_('E-g: #444444 for light-black'),
																			'defaultvalue' => '#fed136',
																			'type' => 'color',
																			),

																'text' => array(
																			'label' => T_('Text'),
																			//'note' => T_('E-g: #444444 for light-black'),
																			'defaultvalue' => 'Foo Bar',
																			'type' => 'text',
																			),

																	'plugin_sets_4' => array(
																					'label' => T_('Level 4'),
																					'note' => T_(''),
																					'type' => $type,
																					'entries' => array(

																										'color' => array(
																													'label' => T_('Color'),
																													//'note' => T_('E-g: #444444 for light-black'),
																													'defaultvalue' => '#fed136',
																													'type' => 'color',
																													),

																										'text' => array(
																													'label' => T_('Text'),
																													//'note' => T_('E-g: #444444 for light-black'),
																													'defaultvalue' => 'Foo Bar',
																													'type' => 'text',
																													),
																										)))))))));
	}

This post has 1 feedback awaiting moderation...


Form is loading...

blogtool – This forum is powered by b2evolution CMS, a complete engine for your website.