Can I address the add comment function from somewhere within an article?

To add a comment, I usually need to scroll to the end of an article. I want to use a button instead at special positions in the article.

Using the shortcut of the add-comment-link at the end of an article does not work as a suitable link for opening the comment editor. Can someone help? I cannot look at this part of my wiki in Wiki Markup.

The comment itself may work as usually. It's only about opening the comment editor somewhere else than at the very end.

Later on it may be interesting to have an additional feature: When clicking the add comment button somewhere in the text, the first line of the relevant paragraph (next to the button) should appear in the comment as a quotation. Clicking on this quotation should bring me back to the position, where the add-comment-button was pushed.

1 answer

1 accepted

This widget could not be displayed.

How about creating a link that points to the comment section of Confluence? i.e.

<a href="#comments-section">Add a comment</a>

You can add the above html to Confluence Admin > Layouts > Page Layout. Add the code below this line:

<div id="main-content" class="wiki-content">
           $body
        </div>

Alternatively, you can add a new user macro like this:

## @noparams

<a href="#comments-section">Add a comment</a>

and then you need to add this macro in every page

Thanks, Amalia,

especially for the prompt answer. As I'm not admin of our confluence installation I may not implement your suggestion myself, but I handed it over to the masters.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 5 hours ago in Statuspage

What are your best incident management tips and stories? #HugOps

 👋Community members! Downtime happens. And great incident response takes a village. Teams like Support, Dev, SRE, Ops, IT, and Marketing have to come together to resolve the problem while keep...

23 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you