Added by Vincent Massol 22 days ago
Hello there,
Is there a syntax I can use to create a WP comment in which I either display an image that is attached to the WP or create a link to an attachment attached to the WP?
I know I can drag and drop images directly in the comment but I'd like to use images and attachments added through the WP Files tab.
Thanks!
Replies (2)
Hello Vincent,
this should indeed be possible with a macro. OpenProject actually supports many useful macros which can be used in text fields:
https://www.openproject.org/docs/user-guide/wysiwyg/#links-to-openproject-resources
However, while looking this up, I found that the
Attachment by filenamemacro is presumably part of a bug.Therefore, I created this bug report for this:
Best,
Alexander
Thx Alexander. I had indeed tried using the `attachment:xxx` syntax but it didn't work so I thought I was not using it in the right context (ie that it wasn't working in WP comments, and only in WP description or in wiki pages). Thx for reporting the bug.