Recent Topics

6.9.X Dynamic Ajax Form Settings - Registering Dynamic Inputs

Started by on Aug 11, 2017 – Contents updated: Oct 23, 2017

Aug 11, 2017 12:43    

This seems to work as expected, except when creating a widget type one has to duplicate the inputs sets to GetDefaultSettings( & $params )

in other words if one only define the params in get_widget_param_definitions( $params ) then it doesn't 'register'. In order to work in Widgets on has to create 'skeleton definitions in ' GetDefaultSettings (See below)

Is this not redundant?

function GetDefaultSettings( & $params )
		global $app_version;
		return array(
			'plugin_sets' => array(
				'label' => T_('Label Name'),
				'note' => T_(''),
				'type' => version_compare( $app_version, '6.6.5', '>' ) ? 'array:array:string' : 'array',
			'entries' => array(), // No need to add the params here, BUT IT MUST BE DEFINED FOR WIDGETS

Sep 18, 2017 22:50

Hi @achillis, this actually fails also in the per-collection plugins setting display.

It's already reported to the devs.


Form is loading...

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