Thread:Project:Support desk/Getting article content using Title ?/reply

What you say basically is right: $article->getContent; will contain the actual article text.

I guess that you are somehow editing this file here, right: https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FNewestPages/1547d9f6891e2c5831d315d6d6d3ed2e4301a882/NewestPages.page.php ?

I have not yet tested, how exactly that extension is working, but reading the code, I guess that inside function execute, where the code deals with $wgOut, that this would be where you can somehow add the actual article text (instead of letting the code create the link, which it would normally create). Maybe something like

$article = new Article( Title::newFromText( $title ) ); $articleText = $article->getContent; $wgOut->addWikiText( $articleText );

works the way you want...