Question

Is it possible to list K2 categories in a module parameter using something like the default Joomla category field type?

<field name="mycategories" type="category" extension="com_content" multiple="true" label="Category" description="" />

Thanks in advance.

Was it helpful?

Solution

Taken from K2 content Module:

<fieldset name="basic" addfieldpath="/administrator/components/com_k2/elements/">
    ...
    <field name="category_id" type="categoriesmultiple" default="" label="K2_SELECT_ONE_OR_MORE_CATEGORIES" description="K2_SELECT_ONE_ORE_MORE_CATEGORIES_FOR_WHICH_YOU_WANT_TO_FILTER_AN_ITEMS_LIST_SELECT_NONE_TO_FETCH_ITEMS_FROM_ALL_CATEGORIES"/>
    ....
</fieldset>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top