https://bugzilla.wikimedia.org/show_bug.cgi?id=21374
Michael Dale <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Resolution|FIXED |REMIND Summary|No documentation on how to |javascript configuration of |add different remote search |mwEmbed modules |targets | --- Comment #2 from Michael Dale <[email protected]> 2010-01-05 23:37:49 UTC --- its now mwAddMediaConfig['enabled_providers']. I have renamed this bug to reflect the base problem "javascript configuration of mwEmbed modules". Also have cc'ed Trevor to see if he wants to comment. Presently there is not a good structured way to package in javascript config variables from php side ... ( we presently plop them all into the the global scope in the output page.. to slightly improve the situation I propose we have a global variable like $wgMwEmbedConfig: In php you could add in config like so: $wgMwEmbedConfig[ 'mwConfigOption' ] = mwConfigValue; Then right after the mwEmbed.js in the page output we would run mw.setConfig( 'option', 'value'); for every item in the array. Eventually we probably want to specify per mwEmbed module loader.js applicable config values and have a real database based configuration system and interface. mediaWiki:Common.js would still have final say to override the php mwEmbed config values at run-time. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
