Extension talk:CustomEdit/Archive 1

Hi Barry,

I just wanted to let you know that this is an extremely useful tool. I am using this to create several data entry forms on a family genealogy wiki where certain information needs to be captured in a specific format for some templates I have written to work. Plus, not all of my community members are wiki-savvy, and this helps me to "dummy-proof" the site a little.

I did want to share one minor tweak I made that allows you to have more flexibility, such as when you have custom namespaces. This lets you add an extension onto the end of an article name rather than at the beginning (I've got several forms that work off of the article end name that create supplemental pages to an individual person's base record). I changed line 6 of the code as follows:

f Each form has its own extension; of course, you have to change the function name for each extension you load
 * Your code:       if (strpos($editpage->mTitle->getText,'Person/') === 0)
 * My change:       if (strstr($editpage->mTitle->getText,'/union') <> FALSE)


 * $wgHooks['AlternateEdit'][] = 'fnMyCustomEdit'; (line 3)
 * function fnMyCustomEdit(&$editpage) (line 4)

So far, it's been working like a charm! Thanks for your great contribution. --Hoggwild5 00:15, 22 December 2006 (UTC)

Found a glitch -- it seems that the forms get triggered on the talk pages for any page that triggers the form. Any thoughts on how to keep that from happening? I'm currently working on a wiki that has extranamespaces set up for both the regular pages and the talk pages. --Hoggwild5 02:45, 22 December 2006 (UTC)
 * I was able to answer my own question....thought I would post the answer here in case anyone else was looking for this solution. You need to modify line 6 of the code as follows:


 * My change:       if ( (strstr($editpage->mTitle->getText,'/union') <> FALSE) && ! $editpage->mTitle->isTalkPage )

And now, it works perfectly! --Hoggwild5 06:14, 22 December 2006 (UTC)


 * Ahhh... I've noticed this too. Haven't tried the fix yet but thanks for posting it! Blckdmnd99 14:03, 5 April 2007 (UTC)

MW Versions?

 * What versions of MW have people successfully used this with? Are there are issue moving up to 1.9 that you know of? Blckdmnd99 14:03, 5 April 2007 (UTC)

wgReadOnly Bug

 * I happened across a bug this morning. I set Manual:$wgReadOnly and all pages were locked successfully except for the ones activated by this extension. (ie, the ones with whatever page prefix you've defined.) Just a heads up to everyone. If I work out the cause, I'll post back. Blckdmnd99 14:03, 5 April 2007 (UTC)

Interfacing with Categories..
hi,

Firstly, thanks for this brilliant extension. I have however one question have you, or anyone using this extension managed to interface this with existing categories. For e.g i would like some of the fields to be drop down menu's instead of text boxes. If you could interface this with existing categories that would be even better....

thanks!!

AJ.