Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Star Ratings v2.0.1 plugin - why does not output work?

plugin plugins

Solved by dydaevskiy View solution

Started by dydaevskiy 8 years ago · 4 replies · 871 views
8 years ago

Hello friends, there is a site:
https://techblog.sdstudio.top

I installed the Star Ratings v2.0.1 plug-in and added the output code to the footer
{{stars (page.route)}}

But for some reason, the code does not work as it should, the place of output of the rating is displayed this code:
2018-08-05_16-11-15|690x296

To create pages, I use the Gantry 5 plugin.

I just started to understand the basics of rabot with Grav, I will be very grateful to everyone who answered for any help. Thank you.

8 years ago

I figured I had to insert the code like this 🙂
{{stars [page.route]}}

8 years ago

@dydaevskiy Have you tried the default Quark theme?

{{ stars(page.route) }} seems to be working fine in /partials/blog-list-item.html.twig and inside the content of item.md.

👍 1
8 years ago Solution

Unfortunately on my site the theme Helium v5.4.24 which is created for the designer gantry 5 is installed. And to insert into the particle the code as in your variant it does not turn out. But I managed to win, and thanks to you too.
In general, if you insert the following code in the constructor:
{{ stars(page.route, { options: { aggregate: { type: 'Blog', title: 'Article' } } }) |raw }}
everything turns out as it should, and the plugin works just fine.
Thank you for your help.

👍 1

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 95 14 hours ago
General · by pamtbaau, 20 hours ago
1 61 19 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 356 5 days ago
General · by Duc , 6 days ago
3 44 6 days ago