Hello,
A simple theming question. I try to find a solution to display a "comment" link directly in the HB message. If it's possible, I'd like to show the react form only if a user click on "comment" under the message. Too many textareas on the stream are not so nice :)
The ideal would a be a comment counter and a link to add another comment.
How would you do that ?
Thank you.
Comments
Comment #1
Stalski commentedDid you check the example module? and the demo site? It's explained there how yo can achieve that facebook effect ;)
FYI
The comment box is just hidden with css by default. I added a button throught hook_heartbeat_messages_theme_alter, that then in js toggles that hidden fieldset of comments.
Comment #2
Anonymous (not verified) commentedSorry Stalski, but I don't find the informations to achieve this effect on the demo site.
Anyway, I try to do something with css and fieldset... Something like this in message-row.tpl.php
It works. The only problem with this solution is that every attachment goes in the fieldset, even the "flag button", of course...
Thank you
Comment #3
Stalski commentedYou can just add buttons, that is the trick. Just do dsm in the hook i said and you will see what is in there. Just add a button to "buttons" and hook js behavior on it.
Comment #4
Anonymous (not verified) commentedI understand the concept, now I try to find the correct way to add a button...
Comment #5
Anonymous (not verified) commentedI've tried to put this code in a custom module but it's not the correct solution. It doesn't work. What am I missing or doing bad ?
Thank you.
Comment #6
Anonymous (not verified) commentedFrom the code you provide on the demo website. I've also tried this (in a custom module)
But it doesn't work. One thing I don't understand is that even if I set the display time to FALSE, the time is displayed on each message.