I am working on a plugin and getting unexpected behaviour. Hoping K2 team can steer me to a solution.
THe elements dont seem to work the same way when specified in 'fieldset'
and 'params'
IN my plugin xml file I can extend the k2 content object by specifying parameters.
If I add path to k2 elements like below
<fieldset name="basic" addfieldpath="/administrator/components/com_k2/elements/">
then I can add xml settings like:
<field name="category_id" type="categoriesmultiple" default="" label="Categories" description=""/>
This is fine for the Administrator ->extensions->plugin parameters - a multi select element for categories shows up
BUT
I want to add multiple categories to the xml file like below but the element refuses to show on the k2 content item edit screen :
<params group="item-content" addpath="administrator/components/com_k2/elements/" >
<param name="category_id" type="categoriesmultiple" default="" label="Categories" description=""/>
<param name="itemview_Full" type="list" default="0" label="Restrict Full text" description="Restrict full text for logged in users">
<option value="0">Off</option>
<option value="1">On</option>
</param>
</params>
All i get is the output in the attached.