Thread:Project:Support desk/Updatation of Mediawiki 1.12 to Mediawiki 1.20/reply (3)

in mediawiki 1.12 what we did, we created one customized module like page_precontent and page_postcontent two column we added in page table, by using our module user can add what should print at the beginning of the content and what should print at end of the content can able to add and modify. For ex consider "Test_Page" is containing original content like "Hi This is test Page", by using our customized extension user have to enter only the title of the page then two text area user can able to see ,like precontent and post content, if user is adding some text in precontent text area like "This this before text" and in post content text area like "This is end of the content", if you load the page "Test_Page" it will show like

This this before text Hi This is test Page This is end of the content

In mediawiki 1.12 we customized the article.php like below in custom code you can see.,

public function outputWikiText( $text, $cache = true ) { global $wgParser, $wgUser, $wgOut, $wgEnableParserCache; $popts = $wgOut->parserOptions; $popts->setTidy(true); $popts->enableLimitReport; /**************** CUSTOME CODE **************************/ $this->mPreContent = Title::getPreContent($this->mTitle); $this->mPostContent= Title::getPostContent($this->mTitle); $text = $this->mPreContent.$text.$this->mPostContent; /********************************************************

In mediawiki 1.21 im not able to find where to make this change.

it is not possible to instruct the user to change it manually in page right now.already in production if i want to change more than 2000 pages i want to modify it, So i want to customize mediawiki core only, so guide me on which file i want to make change yaar, It is very difficult. Developing extension also right now it is not possible, i want to complete this task within 2 days, so please guide.