Closed (works as designed)
Project:
Heartbeat
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jan 2012 at 22:42 UTC
Updated:
19 Mar 2012 at 20:17 UTC
hello , first of all i want to thank for this great module , it contains a lot of nice features.
the issue here is that i was trying to theme the heartbeat active users block rows, and apparently the only suggestion i got for theme developer was "user-profile.tpl.php" so i went to look at the hook_block in the module and i found this
$block['content']=drupal_render(heartbeat_api_most_active_users(variable_get('heartbeat_active_users', 'default')));
i think this should have a theme function on its own , am i missing anything or this needs to be done??
thank you
Comments
Comment #1
Stalski commentedI thought this question would come sooner or later :)
Well, heartbeat looks best with display suite enabled to theme the output. So if you want to override default profile template, you can change the view_mode at the block configuration page. So for instance if you choose teaser there, it will be displayed in teaser mode.
With display suite enabled, you can add view modes like I do mostly and then add a custom view mode and use that one.
So it works as designed and with DS enabled, you can even change things with UI only, without having to if...else the tpl untill we go bezerk