Closed (outdated)
Project:
Fivestar
Version:
7.x-2.0-alpha2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2007 at 09:40 UTC
Updated:
2 Sep 2024 at 20:20 UTC
Jump to comment: Most recent
Comments
Comment #1
OwnSourcing commentedsubscribe
Comment #2
aaustin commentedTry:
Comment #3
quicksketchThis previously was not possible because Fivestar was using drupal_eval() to call the PHP code. This means that the code did not have access to any of the local variables (such as $node). I've switched this to a normal eval() call so the $node variable is now available. This should be in the 1.11 final release and in beta 4 to be posted shortly.
After upgrading, the solution posted by aaustin should work.
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
welzie commentedWorked for me! Thx for posting solution aaustin.
My target code looks like the below. Note: "field_car" is the name of the node reference field.
Using:
drupal 5.7
cck 5.x-1.7
fivestar 5.x-1.12
votingapi 5.x-1.6
Comment #6
Energyblazar commentedHow do the same in drupal 7.
Comment #7
tr commented