Separate composite voting from average rating?

More
6 years 9 months ago #72381 by lipatovroman
Hello!
Is it possible to separate composite voting from average rating?

Explain.

I want to display average rating star at the top of page.
But I need to display composite voting at the bottom oof page.

Thanks.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #72383 by lipatovroman
I also need to integrate voting stars in 3rd-party component (Jcomments) to make it same as in Google Play.
So, I want to instert voting stars right in Jcomments form:

monopics.s3.amazonaws.com/2018-03-17_17-30-52.jpg

Is it possible?

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago #72421 by ggppdk
Hello

this needs little implementation work

it is similar to the DISPLAY METHOD that we have for image field and other fields

'display' shows all

'display_rating_average' will return the rating average

'display_rating_attribs' will return the rating attributes

then you could call 2 times
getFieldDisplay() (see our FAQ)
to add it to your layout

or you could use are "System - Flexisyspro, pro tasks" plugin to add global replacements
Code:
{flexi_field:%fieldid% item:[%item_id% | current] method:%method_name%}
Code:
{flexi_field: 11 item:current method:display_rating_average} {flexi_field: 11 item:current method:display_rating_attribs}

this last method is best as you can add the replacing text anywhere


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #72432 by lipatovroman
Oops, mistake post.
Last edit: 6 years 9 months ago by lipatovroman.

Please Log in or Create an account to join the conversation.

More
6 years 9 months ago - 6 years 9 months ago #72435 by lipatovroman
It seems bug on forum.
Last edit: 6 years 9 months ago by lipatovroman.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.392 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline