Please integrate Rate in the Panels UI (make it available as a widget or something).
As it stands now, it's very confusing how to make Rate work on Panels pages - to the point where one wants to give up. The documentation on this is rather poor and doesn't provide sufficient step-by-step guidance.
Best,
Thomas
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | rate--added-panels-integration--1295240-14.patch | 3.27 KB | jaydub |
| #9 | rate--added-panels-integration--1295240.patch | 3.69 KB | leschekfm |
Comments
Comment #1
Anonymous (not verified) commentedif you use panels node template you just have to add "node being viewed" content and uncheck the "no extras" checkbox...
Comment #2
tiw commentedCan you please explain? I see all the content of the node get displayed when I do what you have suggested. I don't see the rate widget.
Comment #3
Anonymous (not verified) commentedi'm using the node template page from panels. in the content area of this page i've added "node content" and removed the hook from "no extras". thats it...
Comment #4
tiw commentedThank you for the response.
I can get the rate widget in the panels pane along with the rest of the node content. How can I pull 'only the rate widget' in a pane?
Thanks,
Comment #5
tiw commentedI can pull the rate widget now using custom php code given in the README file with the module.
Replace NAME by the widget's machine readable name.
However, I also need 'review text' along with the rating. Users will be rating the product and writing reviews. So far, this module has allowed me to rate products, but not write the reviews. Anyone with similar need?
Comment #6
tomogden commentedThat sounds like another issue, perhaps another module or a sister module.
Comment #7
question4magnet commentedI still cant get it to appear on the page. where is this "no extras" checkbox - cant find it anywhere. im using panels-7.x-3.0.
if someone can point me to the right direction, i would really appreciate it.
Comment #8
andypostRate widget should implement hook_field_extra_fields() to be usable in panels and field_ui
Also there's attempt to make rate a field #1244858: Rate field
Comment #9
leschekfm commentedIn the attached patch I've written a basic integration for panels.
If you have a node context in your page you can insert a widget for this node and choose it's view mode. At the moment I haven't found a way to limit the widgets to choose from to only the ones that are enabled for this nodetype. This means you can insert every widget for every node!
As you now have the option to insert multiple of the same identical widgets at different locations of your page, I would recommend to also apply the patch from #1676746: Addtional Classes and more unique ID. This will add the benefit that all of your widgets get updated automatically if you vote on one.
@mauritsl: Please let me know if you would like to include such functionality into rate or if you would prefer to put this into a seperate module, because then I would create a new project called something like rate_panels/rate_extras.
Edit:
Forgot to mention: the patch is against rate-7.x-1.3
Comment #10
leschekfm commentedComment #11
babruix commentedPatch works, thank you!
Comment #12
andypost@Commiter, please add a new line after patch applied
Needs a new line at the end of file.
Comment #13
nevergoneI'm tested with Rate 7.x-1.6 and works well!
Comment #14
jaydub commentedRerolled the patch against latest in git which is pretty much the 1.6 release.
Comment #15
mauritsl commentedNice work.
Will see if I can create a 1.7 release in the coming week.
Comment #16
leschekfm commentedI think the issue #1676746: Addtional Classes and more unique ID I mentioned in my previous comment should also be included in the upcoming release. So it would be nice if someone could review it.
Comment #17
alexander.sibert commentedAny progress here? I want to use Rate module with Panels!
Comment #18
babruix commented2 neofelis1985: patch #14 works, what additional progress are you looking for?
Comment #19
mauritsl commentedPatch is committed to 7.x-1.x and included in the 1.7 release. Thanks!
Comment #21
kopeboyI found a bug:
The voting won't work correctly:
Basically to make it work you have to always set "Appearance" to "Full widget" in the rate widget settings, regardless of what you choose under "Node display" or later in Panels.
Comment #23
ivnishDrupal 7 is EOL. Issue will be closed, but patches are still here