Closed (fixed)
Project:
Fivestar
Version:
5.x-1.13
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2008 at 18:36 UTC
Updated:
12 Dec 2008 at 20:05 UTC
Hello,
I would like to put the fivestar rating in my page.tpl.php.
Which code would work for that in page.tpl.php?
Thank you in advance!
Regards.Florian
Comments
Comment #1
quicksketchAssuming there is a particular node you want to vote on:
Note that you have to include a node of some sort for Fivestar to work. Currently Fivestar cannot vote on elements other than nodes.
Comment #2
don@robertson.net.nz commentedGreetings - nice module.
I'd like to have the rating on the teaser, but not allow the user to vote until they have read the entire content.
Is this possible?
DOn
Comment #3
memenode commentedThat's what I'd like too, only static widget, not one for voting.
Comment #4
quicksketchDon Robertson, in the settings for the content type, use a "static" widget on the teaser and a "clickable" widget on the full node version.
Alternatively, if you're manually placing the widgets in your tpl.php files, you can use:
Comment #5
quicksketchComment #6
paradigmshifter commentedWhen I do this I get a basic drop down menu form. How can I get the ajax 5 star widget to show instead? Is it supposed to show?
Thanks
Comment #7
paradigmshifter commentedComment #8
paradigmshifter commentedGot it... Since I was adding it directly to the template I forgot to add the fivestar.js and fivestar.css, small.css (widget)