Guys, I am having problems with css star rating system, the documentation could really be better. I created the snippet, and called it as
[[star_raiting? &docID=[+id+] &useSession=1 &onevote=1]]
[+starRating+]
[+totalVotes+]
I made the doc not cachable. I havent created the TV cause I have no clue what to create there.. As i mentioned before, documentation is not very good.
Also... The search on the forum is
terrible.. Seriously whatever I type in the search is too specific.. Guess thats what the google search is for, but it doesnt look like it searches the forums.
-
MODX Staff
- 1,535 Posts
It would really help if you actually stated what the problem you are having is ...
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
ooops... sorry missed that out

The snippet doesn’t load, in the source its just blank space.
the snippets name is star_rating
so you have mispelled in your snippet call, fix that and it will run.
"He can have a lollipop any time he wants to. That's what it means to be a programmer."
Ok, done that. Now this is what I get "Unable to display rating"
-
MODX Staff
- 1,535 Posts
Well, that’s because you haven’t created the TV (looking back at your first post) - create a TV, call it star_rating and assign it to the templates on your site. (If you use the default name of star_rating, you won’t have to amend the snippet call)
Also, I don’t think you need: &docID=[+id+]
If you’re calling this on the page that needs voting on, it automatically assigns the page ID for you. (and unless you’re using this in conjunction with something like the Ditto snippet, then [+id+] won’t actually be replaced with the page ID)
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
great, thanks a lot!