Hi,
For my add-on I would like to create an option that consists of a checkbox and a dependent forum (multi-)selection box. The forum selection box can be created with a call to
I tried using
Am I trying something impossible?
Regards
TiKu
For my add-on I would like to create an option that consists of a checkbox and a dependent forum (multi-)selection box. The forum selection box can be created with a call to
\XF\Option\Forum::renderSelectMultiple. I know that I can create a simple forum selection option by setting its Edit format to PHP callback, its Format parameters to \XF\Option\Forum::renderSelectMultiple, its Data type to Array, and its Array sub-options to *. But how do I do this in a complex option, that uses the Edit format Named template in order to display the forum selector only if a checkbox has been checked?I tried using
xf:callback with params="[{$option}]", but no matter how I try to pass $option, I always get an error telling me that a string instead of a \XF\Entity\Option has been passed to renderSelectMultiple.Am I trying something impossible?
Regards
TiKu