Ekompute .info wrote:
> Hi, I am practically the sole writer of my wiki at
> Dummipedia<http://www.dummipedia.org/Main_Page>.
> As I have quite a few articles that are in various stages of completion, I
> would like to hide these articles from viewers when they press the Random
> Articles Button in the left panel. To differentiate between completed
> articles and incomplete articles, I page-protect all complete articles
> against possible vandalism. How do I tweak my Random Articles Button so that
> only protected articles will be displayed?
> 
> Thank you for your kind assistance.
> 
> PM Poon

Add to your localsettings:
$wgExtraRandompageSQL = 'page_restrictions <> ""';

so pages without any protection won't be considered.


_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to