Is there any example on how to use fivestar without cck in a custom content type?
thanks
Ivan Sergio Borgonovo ha scritto:
Is there any example on how to use fivestar without cck in a custom content type?
Hi, have you read the README.TXT file ?
M.
On Thu, 05 Aug 2010 14:05:32 +0200 Michel Morelli michel@ziobuddalabs.it wrote:
Ivan Sergio Borgonovo ha scritto:
Is there any example on how to use fivestar without cck in a custom content type?
Hi, have you read the README.TXT file ?
Yes that's exactly the place where I learnt it has:
" * An easy-to-use Form API element type for use in other modules"
but I couldn't find any example.
On 2010/08/05, at 8:16, Ivan Sergio Borgonovo wrote:
On Thu, 05 Aug 2010 14:05:32 +0200 Michel Morelli michel@ziobuddalabs.it wrote:
Ivan Sergio Borgonovo ha scritto:
Is there any example on how to use fivestar without cck in a custom content type?
Hi, have you read the README.TXT file ?
Yes that's exactly the place where I learnt it has:
" * An easy-to-use Form API element type for use in other modules"
but I couldn't find any example.
The Fivestar config page tells you to go to your content type, where you can engage Fivestar without CCK. Have you checked your content type?
-- - Hiro
Hiroaki Honshuku, A-NO-NE Music, Greater Boston http://a-no-ne.com http://anonemusic.com
On Thu, 5 Aug 2010 11:46:30 -0400 A-NO-NE Music madflute@anonemusic.com wrote:
The Fivestar config page tells you to go to your content type, where you can engage Fivestar without CCK. Have you checked your content type?
Yeah but I need to control the widget. I don't need to rate the node, I need to rate content (that's not a node) to which the node refers to.
I'd like to put several widgets in the node edit form. I hope I could exploit further fivestar avoiding to build my own submit hook.
eg. I was hoping to be able to write something like:
$form['fs1'] = array( '#type' => 'fivestar', '#content_id' => 1, // some layout parameters etc... ... ); $form['fs2'] = array( '#type' => 'fivestar', '#content_id' => 2, ... );
and in hook_insert/update something like
fivestar_magic($node);
that will invoke the votingapi functions... or just use ajax or whatever...