= Add comments to wiki pages = == Description == The AddCommentMacro allows for easy addition of comments to a page, in a standard format. Each comment is added in the following form: {{{ ==== Comment by on ==== }}} The comment body supports normal TracWiki WikiFormatting. Comments are added after the first line that starts with {{{[[AddComment]]}}}. The AddCommentMacro supports previewing and adheres to the TracPermissions scheme, only allowing comments to be added if the user has write access to the page. Since [21] the AddCommentMacro can fulfill the role of an append only Wiki page. By passing the argument ''appendonly'' to the macro, comments can be appended to the page even when the user does not have permission to modify the page. This is potentially unsafe, but can be useful. == Bugs/Feature Requests == Existing bugs and feature requests for AddCommentMacro are [report:9?COMPONENT=AddCommentMacro here]. If you have any issues, create a [http://trac-hacks.org/newticket?component=AddCommentMacro&owner=athomas new ticket]. == Install == Easy Install instructions for installing latest versions of the macro: === Trac 0.10.x === {{{ $> easy_install http://trac-hacks.org/svn/macropostplugin/0.10 ... $> easy_install http://trac-hacks.org/svn/addcommentmacro/0.10 ... Done. }}} === Trac 0.11.x === {{{ $> easy_install http://trac-hacks.org/svn/macropostplugin/0.11 ... $> easy_install http://trac-hacks.org/svn/addcommentmacro/0.11 ... Done. }}} === Trac.ini === Don't forget to add: {{{ macropost.web_ui.macropostmodule = enabled addcomment.* = enabled }}} to the [components] section of trac.ini, or use the WebAdmin interface to enable both plug-ins == Download == * [source:addcommentmacro/0.8 AddCommentMacro for 0.8] * [source:addcommentmacro/0.9 AddCommentMacro for 0.9] * [source:addcommentmacro/0.10 AddCommentMacro for 0.10] * [source:addcommentmacro/0.11 AddCommentMacro for 0.11] Download all versions as a [download:addcommentmacro zip file]. == Requirements == You need to install MacroPostPlugin first, or the 'preview' and 'submit' buttons won't work. == Source == You can check out the source for AddCommentMacro from Subversion at http://trac-hacks.org/svn/addcommentmacro. == Change Log == [[ChangeLog(/addcommentmacro,3)]] == Author/Contributors == '''Author:''' [wiki:athomas athomas] [[BR]] '''Maintainer:''' [wiki:osimons osimons] [[BR]] '''Contributors:''' [wiki:eblot eblot] (ported Trac to trunk), [wiki:osimons osimons] (0.11 version)