No Code Attached Yet
avatar madanedeepali
madanedeepali
14 Jun 2023

Is it possible to implement Multi-categories for other components in Joomla 4 now in 2023?
For example, in my table #__shopping_details I want to add two category fields so I added
<field name="shopping_account" extension="com_shopping.shoppingdetails" type="category" label="COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHO_CAT" description="COM_SHOPPING_FORM_DESC_SHOPPINGDETAIL_SHO_CAT" hint="COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHO_CAT"/>

<field name="shopping_item_category" extension="com_shopping.shoppingdetails" type="category" label="COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHOOPING_ITEM" description="COM_SHOPPING_FORM_DESC_SHOPPINGDETAIL_SHOOPING_ITEM" hint="COM_SHOPPING_FORM_LBL_SHOPPINGDETAIL_SHOOPING_ITEM"/>

But it will allow me to add categories field twice which could be achieved using multiple true instead of adding two category fields which I do not want what I want is to allow adding two category fields with different categories in it respectively so the same table will have two different categories menu to add categories in it, for example, shopping_account and shopping_item_category and will have different menus to add categories in it...is it achievable in Joomla using Category field? can someone guide me on the same?
Do I need to change extension="com_shopping.shoppingdetails" and extension="com_shopping.shoppingdetails" to something else?

@pollen8 @elkuku @dziudek

avatar madanedeepali madanedeepali - open - 14 Jun 2023
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Jun 2023
avatar madanedeepali madanedeepali - change - 14 Jun 2023
The description was changed
avatar madanedeepali madanedeepali - edited - 14 Jun 2023
avatar madanedeepali madanedeepali - change - 14 Jun 2023
The description was changed
avatar madanedeepali madanedeepali - edited - 14 Jun 2023
avatar madanedeepali madanedeepali - change - 14 Jun 2023
The description was changed
avatar madanedeepali madanedeepali - edited - 14 Jun 2023
avatar bembelimen bembelimen - change - 14 Jun 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-06-14 10:04:15
Closed_By bembelimen
avatar bembelimen bembelimen - close - 14 Jun 2023

Add a Comment

Login with GitHub to post a comment