-
Hello !
You need to add the argument 'show_empty_categories' => true, to the code for the categories block it will lo0ok like:
array ( 'module' => 'system', 'method' => 'categories_list', 'params' => array ( 0 => 'bx_forum_cats', 1 => array ( 'show_empty' => true, 'show_empty_categories' => true, ), ), 'class' => 'TemplServiceCategory', )
-
Thanks. I can see the option of creating a service block here: Studio->Developer->Pages->Discussions->Discussions Home.
About the code that should be placed in the service block, is it the array code you posted above?
Also I would like to show empty categories of many other modules. Should I create the service block for each one of them (module by module)? Is there a way to place the code in the head injection to be used globally?
Thanks
-
1) Yes, it is a PHP array code, just enter it to the Code field of your service block.
2) Yes, you need to create similar blocks for every module or edit the currents. Except the Groups-based apps because they have the Categories block with already enabled "show empty categories" parameter.
-