РЕШЕНО Виджет rate вывести в views

Главные вкладки

Комментарии

Аватар пользователя kodolka kodolka 8 декабря 2015 в 11:08

This module provides views integration via the VotingAPI module. To add a rate

widget in your view, first add a relation to "Node: Vote results" for nodes or

"Comment: Vote results" for comments. You have to configure a few options here.

The "Value type" and "Vote tag" needs to be the same as used for the widget

(see §2.1). The "aggregate" function must be "Number of votes".

After adding the relationship, you can add the field "Vote results: Value" to

your view. In the "Appearance" box you may choose one of the following:

* Rate widget (display only)

This shows a disabled widget. Uses are allowed to see the results, but cannot

click the buttons.

* Rate widget (compact)

This shows a compact widget. This is the basic widget without the textual

information.

* Rate widget

This shows the full widget (as on the node page).

When using a view on nodes, you are advised to add the "Node: Type" field to

your view fields. If you do not, an additional query will be executed per row.

You may exclude this field from display.