MindTouch Developer Center > Deki > FAQ > Visual Customization > How do I...Hide comments?

How do I...Hide comments?

Table of contents
No headers

To prevent comments from being displayed on Deki Wiki pages:

1.  Open your wiki and select Tools->Control Panel (administrator access is required).

./Image1.JPG
Figure 1

2.  Select Configuration.

./Image2.JPG
Figure 2

3.  Enter the following config setting:  config key=ui/comment-count, config value=0.

./Image3.JPG

Figure 3

4.  Your pages may still contian some references to comments; modify the skin files accordingly.  For example, to remove the Comments tab at the bottom of the page, open Ace.php (Deki Wiki VM:  /var/www/deki-hayes/skins/ace).  Find and remove the following text: 

<?php
echo('<a name="attachImages"></a>'
.'<div class="filesheader">'
.'<div class="filesheaderbg">'
.'<div class="filesheaderright">'
.'<div class="filesheadertext">'.Skin::iconify('comments').' <span class="text">'.wfMsg('Skin.Ace.header-comments-count', '('.$this->haveData('commentcount').')').'</span></div>'
.'</div></div></div>');
?>	
<?php $this->html('comments'); ?>

NOTE: The next time you update your wiki by running updateWiki.sh, rename Ace.php to Ace.old.php. Then move your local changes from the old file to the new file that updateWiki.sh creates.

Tag page
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2