Forum Discussion

bhakti's avatar
bhakti
Guide
6 years ago

How to show "All community" option in search bar

Hi,

Currently only two options are visible in search bar when user is searching 1) This board and

2) This category, but I want "All Community" option as well.

I have tried by changing admin setting to "community" (please refer attached screenshot) still I am not getting "All Community" option.

for this any other setting is available?

 

Thanks,

Bhakti

  • Hi bhakti 

    Not sure if there's another way, but I set ours up in a way that it defaults to All Community, no matter where the visitor is in the community.

    If you're able to modify your search component, you'll want to add this:

    defaultToCommunity="true"

    I have a custom search bar wrapper with the following:

    <div class="custom-search-bar-search custom-search-bar-component custom-search-bar-component-left">
    <@component id="common.widget.search-bar" hideGranularity="false" defaultToCommunity="true"/>
    </div>

    Hope this helps.