Hello, and thanks for this great module!

I have multiple 5-star widgets on each node, and I need them to display the title of each widget, so the user can know what each vote means. Description appears below the widget, which isn't very clear. I'd prefer it to simply display like this:

Title:
Widget

Title:
Widget

etc...

Comments

galundin’s picture

Title: Widget Title does not appear in any display format » Display widget title in node view
Assigned: Unassigned » galundin
Category: support » feature

I see now in the README that the Title is only used in the admin section. (Sorry I didn't notice that before.)

So I have changed this issue to a feature request and assigned it to myself. Would anyone else be interested in this feature?

galundin’s picture

Status: Active » Postponed

Well, that was easy... :)

I added the following line in rate.module, near the end of function rate_generate_widget (just before the theme):

$display_options['title'] = check_plain($widget->title);

Then at the beginning of fivestar.tpl.php I added:

if ($display_options['title']) {
  print '<div class="rate-title">' . $display_options['title'] . '</div>';
}

If anyone is interested, I could add an option for this to the admin UI and submit this as a patch.

markabur’s picture

Yes, this would be a nice addition..

markabur’s picture

Issue summary: View changes

Removed unnecessary text for brevity and clarity.

ivnish’s picture

Issue summary: View changes
Status: Postponed » Closed (outdated)

Drupal 7 is EOL. Issue will be closed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

ivnish’s picture

Assigned: galundin » Unassigned