Posted by DrupalCuckoo on March 28, 2011 at 10:48am
Hi,
I'm looking for some functions/hooks to alter the html output of a heartbeat stream.
Normally, the heartbeat module creates a lot of DIVs for a heartbeat stream.
The HTML Output is something like this:
<div id="heartbeat-stream-publicheartbeat" class="...">
<div class="heartbeat-messages-wrapper">
<div class="heartbeat-message-block">
<div id="beat-item-1">
###MESSAGE###
</div>
</div>
<div class="heartbeat-message-block">
<div id="beat-item-2">
###MESSAGE###
</div>
</div>
<div class="heartbeat-message-block">
<div id="beat-item-3">
###MESSAGE###
</div>
</div>
</div>
</div>I found al lot of theming functions in the heartbeat.module file but couldn't figure out where the actual HTML for the stream gets generated?!
How can I change this to get a UL List?
Thanks for any help!
best regards.
Comments
I totally overlooked the
I totally overlooked the template file "heartbeat-message-row.tpl.php"!!!
Would it be enough to copy this file into my theme's directory and replacing the container DIVs with an UL?
It's enough
@DrupalCuckoo,
It's enough to copy the heartbeat-message-row.tpl.php into your custom themes folder..
After that do all the changes, what you want?
Thanks & regards
Sarav..
Note that you will still need
Note that you will still need the ID's and classes on the stream. E.g. polling for newer messages or just stream updates in general require that.
The ID's on the messages them self (as ID's on commenting) need to be in place to for deletions. The deletion will succeed without but currently the divs fade and remove with those attributes).
Happy theming