Jump to content

Topic on Extension talk:CommentStreams

How to make comment streams optional on all namespaces?

4
Summary by Kghbln

Set $wgCommentStreamsAllowedNamespaces = -1;. The documentation was updated accordingly.

Kghbln (talkcontribs)

@Cindy According to the docu $wgCommentStreamsAllowedNamespaces = []; should make comment streams optional on the content namespaces, i.e., they should only show if I add <comment-streams /> However, with this setting I stell get comment streams by default on the content namespaces. Is this a bug or did I misinterpret the docu?

MarkAHershberger (talkcontribs)

Try $wgCommentStreamsAllowedNamespaces = [-1];

MarkAHershberger (talkcontribs)

I was almost right. From the source:

// if $wgCommentStreamsAllowedNamespaces is not set, display comments
// in all content namespaces and if set to -1, don't display comments
// unless they are explicitly enabled on the given page

So, use $wgCommentStreamsAllowedNamespaces = -1;

Kghbln (talkcontribs)

Cool, thank you for your help. I verified with a wiki that $wgCommentStreamsAllowedNamespaces to -1. allows for comments on pages with tags only. Currently, the docu on the extensions page states, "To disallow comments on all namespaces even in the presence of the ‎<comment-streams /> tag function, set $wgCommentStreamsAllowedNamespaces to -1.." which is what derailed me.