Jump to content

Topic on Help talk:Extension:AdvancedSearch

Is it possible to modify the namespaces selected by default?

3
Summary by Christoph Jauera (WMDE)

Manual:$wgNamespacesToBeSearchedDefault can be used to define the default namespace pre-selected in the search form.

38.97.212.205 (talkcontribs)

I've tried the follow and various forms to add a namespace to the default selected list

$wgAdvancedSearchNamespacePresets['defaultNamespaces']['namespaces'][]=(string)NS_EQUIPMENT;


Any help appreciated.

Christoph Jauera (WMDE) (talkcontribs)

Hey!

The namespace selected by default ( as part of the default search name space ) is defined by this variable: Manual:$wgNamespacesToBeSearchedDefault independent from the AdvancedSearch extension. If you change that ( e.g. by removing main and adding something else ) you should get what you need. :-)

38.97.212.205 (talkcontribs)
Reply to "Is it possible to modify the namespaces selected by default?"