·
Added a discussion

How to add category in Discussion app because i don't have that option in administration ??

  • 529
Comments
    • Hello @Andbob

      To add 'Category' to your Discussions App, please go to Studio -> Forms app -> Data Items -> Select Discussions module (from the dropdown field) -> Forum Categories -> 'Add New Item' button.

      To add 'Categories', please go to Studio -> Forms app -> Categories -> Select Discussions module (from the dropdown field) -> 'Add' button.

      To know the difference between 'Category' (singular) and 'Categories' (plural), please read this post:

      https://una.io/cmts-view/1s20owo?sys=bx_forum&cmt_id=41055

      • Hello @OneEagle

        I would like to ask if there is a possibility (in discussion) to use 'Categories' (plural) without allowing users to select multiple categories ?

        Thank you 🤗

        • Hi @Ekena

          Well, If you don't want to allow your users to select multiple categories, you'd rather use 'Category' (singular). That's what 'Category' is for.

          The main difference between 'Category'' and 'Categories' is that while with 'Category' (singular), only one category (pre-created by the admin) can be selected, 'Categories' (plural) allows users to select multiple categories (still pre-created by the admin) and/or to suggest/create their own.

          Also there is a display (visual) difference between them because they work differently. 'Category' uses a dropdown field while 'Categories' use a multiselect field.

          To use 'Categories' without the multiselect functionallity will probably require a custom code to  modify existing code. @LeonidS

          • Thank you so much @OneEagle 🤗 It is much clearer now 😊

            • You are welcome :)

              • Is there a way to create a page block for a specific category i.e. discussion > general or discussion > news whatever the topic is.

                • Hello @Devin Young !

                  You may add the service block via the Developer app, Pages section with the following code:

                  array (
                   'module' => 'bx_forum',
                   'method' => 'browse_category',
                   'params' => 
                   array (
                    0 => '',
                    1 => 'true',
                    2 => 'true',
                    3 => 
                    array (
                     'category' => [Your category number],
                    ),
                   ),
                  )
                  
                    • How about a feed for a specific category?

                      • Hello @joonaskoo !

                        Well, it's better to use the channels instead of the category because they have the own profile feed which is comfortable to show all added content there. Just add via the Developer->Pages app the service method with the following code:

                        array (
                          'module' => 'bx_timeline',
                          'method' => 'get_block_view_profile',
                          'params' =>
                          array (
                           0 => 'bx_channels',
                           1 => 1,
                          ),
                        )
                        

                        where

                           1 => 1,
                        

                        means the channel with id=1, so for the second it would be

                           1 => 2,
                        
                        Login or Join to comment.