The answer is "it depends", but maybe this will work for you.

Add the extension MyVariables to your installation

    http://www.mediawiki.org/wiki/Extension:MyVariables

and then modify it to add a new variable like LOGGEDIN:

Near the top:
   $wgCustomerVariables = array(..., 'LOGGEDIN', ...)

In function wfGetCustomVariable(), add
                case MAG_LOGGEDIN:
                        if ($wgUser->isLoggedIn())
                                $ret = 'Y';
                        else
                                $ret = 'N';
                        break;

On your Mediawiki page, surround the content with something like

{{#ifeq: {{LOGGEDIN}} | N | <div style="display:none">}}
... content ...
{{#ifeq: {{LOGGEDIN}} | N | </div>}}

-----Original Message-----
From: mediawiki-l-boun...@lists.wikimedia.org
[mailto:mediawiki-l-boun...@lists.wikimedia.org] On Behalf Of
sreelaxmi.all...@cognizant.com
Sent: Wednesday, January 11, 2012 1:59 AM
To: MediaWiki-l@lists.wikimedia.org
Subject: [Mediawiki-l] I need to Hide a single page from Un-login users

Hi

 

I need to Hide a single page from Un-login users.. Can u help me regarding
dis.?

 

Regards

---


This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged
information. If you are not the intended recipient(s), please reply to the
sender and destroy all copies of the original message. Any unauthorized
review, use, disclosure, dissemination, forwarding, printing or copying of
this email, and/or any action taken in reliance on the contents of this
e-mail is strictly prohibited and may be unlawful.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l


_______________________________________________
MediaWiki-l mailing list
MediaWiki-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to