Ah.  That would do it.  I had forgotten to mention this, but in
SpecialMasterPlanForm.php I have a line "$wgOut->addModules(
'ext.MasterPlanForm.core');" but if I need put that in a BeforePageDisplay
hook, that would explain it.

If I understand correctly then, removing the aforementioned line from
SpecialMasterPlanForm.php and adding the following to MasterPlanForm.php
should fix the issue: http://pastebin.com/Ajh3JJn8

Again my apologies for having a hard time with this.  I usually have a much
easier time understanding how to do things.

Thank you,
Derric Atzrott


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Roan Kattouw
Sent: 25 May 2012 16:00
To: Wikimedia developers
Subject: Re: [Wikitech-l] ResourceManager and Javascript in Mediawiki

On Fri, May 25, 2012 at 12:47 PM, Derric Atzrott
<[email protected]> wrote:
> I have read the Migration Guide for Extension Developers; I actually 
> still have it open right now.  It lead me to believe that if I were to 
> do the following, I could expect to see some sort of result.
>
> Add the following to the end of MasterPlanForm.php:
> http://pastebin.com/gwB8X2cj
> Create the following directory: /extensions/MasterPlanForm/js Create 
> the following file:
> /extensions/MasterPlanForm/js/ext.MasterPlanForm.core.js
> Add the following to the newly created file: 
> http://pastebin.com/kyiLiysJ
>
> If I understand correctly, which it appears I do not, that should have 
> changed the element with the ID " firstHeading" to "Test".
>
You created a module, but you didn't actually add it to the page anywhere.
See
https://www.mediawiki.org/wiki/ResourceLoader/Migration_guide_for_extension_
developers#Adding_a_module_to_the_page
. Basically, you need a BeforePageDisplay hook that calls $out->addModules(
'ext.MasterPlanForm' ); .

Roan

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to