Keyword

xml param & field element behaviour - bug?

  • Alan Sparkes
  • Alan Sparkes's Avatar Topic Author
  • Offline
  • Premium Member
More
11 years 7 months ago #110878 by Alan Sparkes
xml param & field element behaviour - bug? was created by Alan Sparkes
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.
Attachments:

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum