Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

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 · 1063 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 jeremycherfas, 1 week ago
4 182 2 days ago
General · by lynbor, 6 days ago
2 124 3 days ago
General · by Old Man Umby, 1 week ago
1 100 1 week ago
General · by Sebastian, 2 weeks ago
1 124 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 248 3 weeks ago