是否可以使用类似默认Joomla类别字段类型的内容在模块参数中列出K2类别?
<field name="mycategories" type="category" extension="com_content" multiple="true" label="Category" description="" />
提前致谢。
答案 0 :(得分:2)
取自K2内容模块:
<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>