Hi Folks!
Is there a way to indentify, what page is currently displayed? So in this way i could make a if/else one to say, that a special thing should done, when "Mainpage" is displayed.
Thanks for any answers!
$_GET['title']
but why not just put this special thing on the main page, it is a wiki you can edit the content?
Miek Valstar
Robert Hartmann wrote:
Hi Folks!
Is there a way to indentify, what page is currently displayed? So in this way i could make a if/else one to say, that a special thing should done, when "Mainpage" is displayed.
Thanks for any answers! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Cause i want
-----Original Message----- From: Mike Valstar [mailto:mikevalstar@gentoo-wiki.com] Sent: Wednesday, August 17, 2005 9:08 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Find out what page is displayed
$_GET['title']
but why not just put this special thing on the main page, it is a wiki you can edit the content?
Miek Valstar
Robert Hartmann wrote:
Hi Folks!
Is there a way to indentify, what page is currently displayed? So in this way i could make a if/else one to say, that a special thing should
done, when "Mainpage" is displayed.
Thanks for any answers! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Cause i want to add special category list managed by php and a database. So there's no way to do this with the help of the wiki code!
But thanks for your answer. Very helpful!
-----Original Message----- From: Mike Valstar [mailto:mikevalstar@gentoo-wiki.com] Sent: Wednesday, August 17, 2005 9:08 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Find out what page is displayed
$_GET['title']
but why not just put this special thing on the main page, it is a wiki you can edit the content?
Miek Valstar
Robert Hartmann wrote:
Hi Folks!
Is there a way to indentify, what page is currently displayed? So in this way i could make a if/else one to say, that a special thing should
done, when "Mainpage" is displayed.
Thanks for any answers! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 8/17/05, Robert Hartmann rob.hartmann@gmx.de wrote:
Cause i want to add special category list managed by php and a database. So there's no way to do this with the help of the wiki code!
You may wish to create an extension which does this. Then you could use that extension (only) on your main page.
On 17/08/05, Robert Hartmann rob.hartmann@gmx.de wrote:
Hi Folks!
Is there a way to indentify, what page is currently displayed? So in this way i could make a if/else one to say, that a special thing should done, when "Mainpage" is displayed.
I think you're looking for the $wgTitle object; although, it kind of depends where you want to identify this fact *from*, and what you want to do with it, which isn't really clear from your request.
mediawiki-l@lists.wikimedia.org