Forum Discussion

Akenefick's avatar
Akenefick
Genius
4 years ago

Adding Report Abuse Button to Forum Message Page

I am trying to add an abuse report button to the Forum Message Page. I created a custom component using this existing component.

<@component id="forums.action.report-abuse"/>

It works great when added to the header or footer, however when I try adding it to "Main Right" it breaks. It is no longer a clickable link. Is that forums.action.report-abuse component just not usable in that part of the page? Is there an alternative way of doing this?

It looks like I could just use this link instead.

[MyCommunity].com/t5/notifications/notifymoderatorpage/message-uid/[uid]

But I don't know how to get the message uid. Can I use that in my component and would it work in the "Main" section of the page? If so could someone explain how to get the message uid keeping in mind that I am still new at this. Thanks.

 

  • I figured out how to get the UID using ${env.context.message.uniqueId} and got my component working using the link instead of the forums.action.report-abuse component, but it still won't work when added to "Main Right" section of the Forum Message page. Is there a way to make this work?  Or does it have to be in the header or footer for some reason? Thanks.