Forum Discussion
I hope this helps.
- miikka9 years agoMaven
thanks VarunGrazitti
I'm working on a custom navigation where ideally I'd like to reuse the existing quick reply logic if possible. So I'll investigate if there's a feasible way of placing at least some of the code within Forum Message but if that starts to like a hack, then it's time for some custom development :smileyhappy:
Might be easier just trying to tap into the existing event listeners and ajax calls while doing custom code for the UI bit. One other option is to use jQuery to tweak the markup but that sounds relatively hacky as well.
Cheers,
.M
- PerBonomi9 years agoBoss
I assume that quick reply uses env.context, so placing it outside confuses it, not finding a message id to work with.
You could make a very simple custom component along these lines:
<span class="button" id="bt1">Quick Reply</span>
<textarea id="qr" class="hidden"></textarea>
<span class="button" id="qr_submit" data-cust-id="${page.context.message.uniqueId}">Submit</span>
Then do some simply jquery to toggle the textarea on click of #bt1, and on click of #qr_submit grab the textarea value then use body = value?url, msg_id = $(this).attr("data-cust-id") and call a simple endpoint to do your posting.
Related Content
- 5 years ago
- 5 years ago
- 4 years ago
- 11 years ago