XF 2.2 How to hide discussion tab?

-Eric-

Member
Hi,

Is it possible to hide Discussion in specific forums? via style or another way.
In general I would like to use a mixed forum: Question, Poll...
but showing Discussion and Question may cause confusion for users.

1716692701771.webp
 
Solution
I use 3 languages, how can I apply to others?
To my knowledge there is no reason why this should not work depending on the selected language, this code acts on the templates, therefore no link with the language. Unless you use 1 different style for each language? Then you will have to modify the extra.less file for each of them.

How to apply to a specific forum?
Change X to your node ID
Less:
[data-container-key="node-X"] {
    .inputTypes-display.inputTypes-display--type_discussion {
        display: none;
    }
}
I use 3 languages, how can I apply to others?
To my knowledge there is no reason why this should not work depending on the selected language, this code acts on the templates, therefore no link with the language. Unless you use 1 different style for each language? Then you will have to modify the extra.less file for each of them.

How to apply to a specific forum?
Change X to your node ID
Less:
[data-container-key="node-X"] {
    .inputTypes-display.inputTypes-display--type_discussion {
        display: none;
    }
}
 
Solution
I use 3 languages, how can I apply to others?
My mistake, it looks like I hadn't updated the page correctly.

Today I saw that a few years ago you published suggestions on this subject (Type Questions, Discussion...), which is still pending.
Maybe I'll use something different, a specific forum for News + polls for each category.
I don't think it's a good idea to configure the type based on the name of the prefix (one of the suggestions).
 
Back
Top Bottom