Ryan P Bobko wrote:
I'm looking for a way to insert category tags to
whatever the user enters when
editing a page. I've been focusing in EditPage.php, and tried appending the
text ("[[category:test]]") to EditPage->textbox1 just before the
Article::insertNewArticle call, but it doesn't seem to work. Instead of a
link to my test category, I get a broken link to a "category:test" page.
I've also fooled with changing Article::getContent, but it seems like I
shouldn't have to change that code to do this. $wgHooks, too, but still no
luck.
In theory an article save hook should be able to do that, though it may
or may not actually work. Can you post your code somewhere to look at?
-- brion vibber (brion @
pobox.com)