1 of 1 found this page helpful

Disable comments on page

    Table of contents
    No headers

    These instructions are from an OpenGarden.org forum posting by RoyK.)

    Version:  8.05.1 and higher

    First, create a template "Template:NoComments" and put some text there such as, "Comments are disabled on this page".

    Then on the page you want to disable comments, type in:

    {{wiki.template("NoComments", nil, "comments")}}

    You'll also need to update LocalSettings.php:

    $wgTargetSkinVars[] = 'comments';

    This is new functionality inside MindTouch which allows you to overwrite skinning variables from inside the content - what you've done here is inserted the "NoComments" template inside the skinning variable "comments", thus overriding the default content that's loaded.

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by