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

1 vote
Accepted answer

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">

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
Community showcase

Scrum Roles Explained: the Do's and the Don'ts

Hello Community,  Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...

88 views 0 4
Read article

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