Page 1 of 1

LISE module multiple Categories

Posted: Thu Jan 28, 2021 8:46 pm
by mdsebans
Hi Team,
In a LISE module, Is there an option that users can choose multiple categories for a LISE instance?
Also, change the order of LISE instances based on categories?

Thanks in advance.

Re: LISE module multiple Categories

Posted: Thu Jan 28, 2021 9:20 pm
by DIGI3
In the field definitions for the instance you can change the "Sub Type" for the category fielddef to Multi Select or jQuery Multiselect.

Re: LISE module multiple Categories

Posted: Fri Jan 29, 2021 12:34 am
by mdsebans
Thank you so much. It worked for me. :)
Sorry If I am asking for more,
Can we change the order of instances based on these categories, Do I have to add some custom code to do that?

PS: I am a front end developer, not so good with PHP, sorry If my question doesn't make sense.

Re: LISE module multiple Categories

Posted: Fri Jan 29, 2021 2:26 pm
by DIGI3
Look for the orderby= parameter in the LISE help, you can sort by category (and pretty much anything else).

You can also use the category= mode with show_items= parameter to list the category name then each item underneath it. Currently you can't sort the items in the category mode, just the categories themselves, but that's hopefully being fixed in the next release.