A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

How to exclude namespace from namespaceselectwithbutton

Jayprakash12345

See

        $formDescriptor['namespaceselectwithbutton'] = array(
                                'type' => 'namespaceselectwithbutton',
				'label-message' => 'longpage-submit',
				'all' => '0',
        );
       $htmlForm = new HTMLForm( $formDescriptor, $this->getContext() );

I have another variable array,

 $excludenamespace= array_filter( MWNamespace::getValidNamespaces(), 'MWNamespace::isTalk' );

So How I can pass $excludenamespace in namespaceselectwithbutton so that it will excluded some namespace.

Tgr

Not supported right now. Patches welcome :slight_smile: