How do i call a rendered wiki-page (article) in php by a defined name?
hj.
On 6/8/05, topi topologis@t-online.de wrote:
How do i call a rendered wiki-page (article) in php by a defined name?
You're going to have to be more specific in what you're trying to do. As it stands, what you're asking is kinda hard.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB.
If I understand what you are trying to do... I generated multiple rendered wiki articles in the PDF export hack I wrote.
$wgOut->mBodytext = ""; # Clear the output $art = "Some article title"; $PDFTitle = Title::newFromURL( $art ); $PDFArticle = new Article($PDFTitle); $PDFArticle->view(); # generate the output
Now $wgOut->mBodyText contains the article's html code, and you can do that for as many as you want.
- MHart - http://taxalmanac.org
----- Original Message ----- From: "Jamie Bliss" astronouth7303@gmail.com To: "topi" topologis@t-online.de; "MediaWiki announcements and site admin list" mediawiki-l@wikimedia.org Sent: Wednesday, June 08, 2005 8:21 PM Subject: Re: [Mediawiki-l] calling a wiki-page by a defined name
On 6/8/05, topi topologis@t-online.de wrote:
How do i call a rendered wiki-page (article) in php by a defined name?
You're going to have to be more specific in what you're trying to do. As it stands, what you're asking is kinda hard.
-- Jamie ------------------------------------------------------------------- http://endeavour.zapto.org/astro73/ Thank you to JosephM for inviting me to Gmail! Have lots of invites. Gmail now has 2GB. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I want to replace the navigation-menu by a fixed article (e.g. mywiki:menu). Therefor i just would like to replace the navigation part ("<?php foreach($this->data['navigation_urls'] ... " by a function, which inserts the article called "mywiki:menu". This would make the changing of the navigation-menue much more easier
"topi" topologis@t-online.de schrieb im Newsbeitrag news:d86fjg$jql$1@sea.gmane.org...
How do i call a rendered wiki-page (article) in php by a defined name?
hj.
topi wrote:
I want to replace the navigation-menu by a fixed article (e.g. mywiki:menu). Therefor i just would like to replace the navigation part ("<?php foreach($this->data['navigation_urls'] ... " by a function, which inserts the article called "mywiki:menu". This would make the changing of the navigation-menue much more easier
You should be able to use SkinTemplate's msgWiki() method for this, using a custom message in the MediaWiki: namespace to store the list.
Be aware that loading and rendering extra wikitext on every page may slow things down a bit, which is part of why we don't do it that way.
-- brion vibber (brion @ pobox.com)
Brion Vibber <brion@...> writes:
topi wrote:
I want to replace the navigation-menu by a fixed article (e.g. mywiki:menu). Therefor i just would like to replace the navigation part ("<?php foreach($this->data['navigation_urls'] ... " by a function, which inserts the article called "mywiki:menu". This would make the changing of the navigation-menue much more easier
You should be able to use SkinTemplate's msgWiki() method for this, using a custom message in the MediaWiki: namespace to store the list.
Be aware that loading and rendering extra wikitext on every page may slow things down a bit, which is part of why we don't do it that way.
Thanks a lot Brion
it works fine within the MonoBook.php skin
but when using that hack e.g. in CologneBlue.php i get an error message:
Fatal error: Call to undefined method SkinCologneBlue::msgWiki() in C:\apachefriends\xampp\htdocs\wiki\skins\CologneBlue.php on line 188
topi
mediawiki-l@lists.wikimedia.org