Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Velocity Markup

Comments accessed in this way are unrendered:

Code Block
#foreach ($cmt in $allComments.getComments($issue))
    <p>$wikiRenderer.render($cmt.body, null)</p>             
#end

Rendering the comments 

Rendering converts the wiki markup in the comments to more formatted TEXT or HTML:

Code Block
#foreach ($cmt in $allComments.getComments($issue))
    <p>$wikiRenderer.render($cmt.body, $issueRenderContext)</p>             
#end

Styling and Presentation

Just putting out the content may not be sufficient, the following was supplied by a user to improve that:

Code Block
css
css
<style type="text/css">
<!--
a {color:#fc6558};
a:visited {color:#fc6558};
.comment { margin-left: 40px; width: 650px; color:#6d7072; }
-->
</style>


Code Block
html
html
<div class="comment">$wikiRenderer.render($comment.body, null)</div>


Related

Questions

Related Articles

Filter by label (Content by label)
showLabelsfalse
max5
showSpacefalse
cqllabel in ("velocity","template","comment","notifications") and type = "page" and space = currentSpace()

Related Questions